Files
Polaris/code/controllers/autotransfer.dm
MarinaGryphon 593246b595 Linter diagnostics + bans non-var relative pathing (#8150)
* Linter diagnostics + bans non-var relative pathing

* Enable DreamChecker Annotations

* make it executable

* update hashFiles

* oops

* tries to fix it... again

* trying again

* path

* repath

* fix perms

* fixes weird capitalisation issue
2021-06-20 13:14:29 -09:00

18 lines
601 B
Plaintext

var/datum/controller/transfer_controller/transfer_controller
/datum/controller/transfer_controller
var/timerbuffer = 0 //buffer for time check
var/currenttick = 0
/datum/controller/transfer_controller/New()
timerbuffer = config.vote_autotransfer_initial
START_PROCESSING(SSprocessing, src)
/datum/controller/transfer_controller/Destroy()
STOP_PROCESSING(SSprocessing, src)
/datum/controller/transfer_controller/process()
currenttick = currenttick + 1
if (round_duration_in_ds >= timerbuffer - 1 MINUTE)
SSvote.autotransfer()
timerbuffer = timerbuffer + config.vote_autotransfer_interval