From 699e0bca81a139ca1fd4e1bab58cf64bcbdb9c92 Mon Sep 17 00:00:00 2001 From: Odairu <39929315+Odairu@users.noreply.github.com> Date: Tue, 27 Aug 2024 02:56:09 -0400 Subject: [PATCH] modular, if you make me do this on skyrat I will cry because they do not have the feature this solves (#2013) ## About The Pull Request Makes it so ghosts can vote on transfers after the first one at 2:30 has happened ## Why It's Good For The Game ![image](https://github.com/user-attachments/assets/f5a4ec00-cf98-4532-82ca-de032fbcd352) ## Proof Of Testing it compiles (I tested it and forgor screenshot) ## Changelog :cl: qol: ghosts can vote on transfers 2 and above /:cl: --------- Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com> --- modular_zubbers/code/modules/voting/_votes.dm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modular_zubbers/code/modules/voting/_votes.dm b/modular_zubbers/code/modules/voting/_votes.dm index 2807c952c42..1e249f22dec 100644 --- a/modular_zubbers/code/modules/voting/_votes.dm +++ b/modular_zubbers/code/modules/voting/_votes.dm @@ -17,6 +17,16 @@ return TRUE #undef INGAME_TIME_NEEDED - /datum/vote/transfer_vote allow_ghosts = FALSE + // Has this vote been run before? + var/has_ran = FALSE + +/datum/vote/transfer_vote/can_mob_vote(mob/voter) + if(has_ran) + return TRUE + return ..() + +/datum/vote/transfer_vote/finalize_vote(winning_option) + has_ran = TRUE + return ..()