mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 21:22:40 +00:00
* 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
18 lines
601 B
Plaintext
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
|