mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] admin verb to modify shift end time (#10573)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e67b085fc5
commit
fb5b0d3d7a
@@ -5,6 +5,7 @@ var/datum/controller/transfer_controller/transfer_controller
|
||||
var/currenttick = 0
|
||||
var/shift_hard_end = 0 //VOREStation Edit
|
||||
var/shift_last_vote = 0 //VOREStation Edit
|
||||
|
||||
/datum/controller/transfer_controller/New()
|
||||
timerbuffer = CONFIG_GET(number/vote_autotransfer_initial)
|
||||
shift_hard_end = CONFIG_GET(number/vote_autotransfer_initial) + (CONFIG_GET(number/vote_autotransfer_interval) * 2) //CHOMPStation Edit //Change this "1" to how many extend votes you want there to be. //Note: Fuck you whoever just slapped a number here instead of using the FUCKING CONFIG LIKE ALL THE OTHER NUMBERS HERE
|
||||
@@ -29,3 +30,14 @@ var/datum/controller/transfer_controller/transfer_controller
|
||||
SSvote.start_vote(new /datum/vote/crew_transfer)
|
||||
//VOREStation Edit END
|
||||
timerbuffer = timerbuffer + CONFIG_GET(number/vote_autotransfer_interval)
|
||||
|
||||
/datum/controller/transfer_controller/proc/modify_hard_end(client/user)
|
||||
var/new_shift_end = tgui_input_number(user, "Modify the shift end timer (Input in Minutes)", "Shift End", shift_hard_end / 600)
|
||||
|
||||
if(!new_shift_end)
|
||||
return
|
||||
|
||||
var/calculated_end = new_shift_end * 600
|
||||
|
||||
shift_hard_end = calculated_end
|
||||
shift_last_vote = calculated_end
|
||||
|
||||
Reference in New Issue
Block a user