mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-21 04:07:52 +01:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
15 lines
470 B
Plaintext
15 lines
470 B
Plaintext
/datum/vote/crew_transfer
|
|
question = "End the shift"
|
|
choices = list("Initiate Crew Transfer", "Extend The Shift")
|
|
vote_type_text = "crew transfer"
|
|
vote_result_type = VOTE_RESULT_TYPE_SKEWED
|
|
|
|
/datum/vote/crew_transfer/New()
|
|
if(SSticker.current_state < GAME_STATE_PLAYING)
|
|
CRASH("Attempted to call a shutle vote before the game starts!")
|
|
..()
|
|
|
|
/datum/vote/crew_transfer/handle_result(result)
|
|
if(result == "Initiate Crew Transfer")
|
|
init_shift_change(null, TRUE)
|