This commit is contained in:
Hatterhat
2020-02-19 21:14:13 -06:00
parent 0ad49f9004
commit 362ebbcf8f

View File

@@ -16,10 +16,10 @@ SUBSYSTEM_DEF(autotransfer)
return ..()
/datum/controller/subsystem/autotransfer/fire()
if(maxvotes > votes)
if(maxvotes > curvotes)
if(world.time > targettime)
SSvote.initiate_vote("transfer",null) //TODO figure out how to not use null as the user
targettime = targettime + CONFIG_GET(number/vote_autotransfer_interval)
votes += 1
curvotes += 1
else
SSshuttle.autoEnd()