Better config for extended shift restart

This commit is contained in:
Repede
2020-02-09 03:16:52 -05:00
parent 8e7ec3b407
commit 23b6d8cb3c
2 changed files with 5 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ datum/controller/transfer_controller
var/shift_last_vote = 0 //VOREStation Edit var/shift_last_vote = 0 //VOREStation Edit
datum/controller/transfer_controller/New() datum/controller/transfer_controller/New()
timerbuffer = config.vote_autotransfer_initial timerbuffer = config.vote_autotransfer_initial
shift_hard_end = config.vote_autotransfer_initial + (config.vote_autotransfer_interval * 4) //VOREStation Edit //Change this "1" to how many extend votes you want there to be. shift_hard_end = config.vote_autotransfer_initial + (config.vote_autotransfer_interval * config.vote_autotransfer_amount) //YW Edit: made that '1' a config //VOREStation Edit //Change this "1" to how many extend votes you want there to be.
shift_last_vote = shift_hard_end - config.vote_autotransfer_interval //VOREStation Edit shift_last_vote = shift_hard_end - config.vote_autotransfer_interval //VOREStation Edit
START_PROCESSING(SSobj, src) START_PROCESSING(SSobj, src)

View File

@@ -34,6 +34,7 @@ var/list/gamemode_cache = list()
var/vote_period = 600 // length of voting period (deciseconds, default 1 minute) var/vote_period = 600 // length of voting period (deciseconds, default 1 minute)
var/vote_autotransfer_initial = 108000 // Length of time before the first autotransfer vote is called var/vote_autotransfer_initial = 108000 // Length of time before the first autotransfer vote is called
var/vote_autotransfer_interval = 36000 // length of time before next sequential autotransfer vote var/vote_autotransfer_interval = 36000 // length of time before next sequential autotransfer vote
var/vote_autotransfer_amount = 1 // number of extension votes before the final one
var/vote_autogamemode_timeleft = 100 //Length of time before round start when autogamemode vote is called (in seconds, default 100). var/vote_autogamemode_timeleft = 100 //Length of time before round start when autogamemode vote is called (in seconds, default 100).
var/vote_no_default = 0 // vote does not default to nochange/norestart (tbi) var/vote_no_default = 0 // vote does not default to nochange/norestart (tbi)
var/vote_no_dead = 0 // dead people can't vote (tbi) var/vote_no_dead = 0 // dead people can't vote (tbi)
@@ -417,6 +418,9 @@ var/list/gamemode_cache = list()
if ("vote_autotransfer_interval") if ("vote_autotransfer_interval")
config.vote_autotransfer_interval = text2num(value) config.vote_autotransfer_interval = text2num(value)
if ("vote_autotransfer_amount")
config.vote_autotransfer_amount = text2num(value) //YW addition, vote transfer amount
if ("vote_autogamemode_timeleft") if ("vote_autogamemode_timeleft")
config.vote_autogamemode_timeleft = text2num(value) config.vote_autogamemode_timeleft = text2num(value)