mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-29 03:22:12 +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/currenttick = 0
|
||||||
var/shift_hard_end = 0 //VOREStation Edit
|
var/shift_hard_end = 0 //VOREStation Edit
|
||||||
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_GET(number/vote_autotransfer_initial)
|
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
|
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)
|
SSvote.start_vote(new /datum/vote/crew_transfer)
|
||||||
//VOREStation Edit END
|
//VOREStation Edit END
|
||||||
timerbuffer = timerbuffer + CONFIG_GET(number/vote_autotransfer_interval)
|
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
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ var/list/admin_verbs_admin = list(
|
|||||||
/client/proc/removetickets,
|
/client/proc/removetickets,
|
||||||
/client/proc/delbook,
|
/client/proc/delbook,
|
||||||
/client/proc/toggle_spawning_with_recolour,
|
/client/proc/toggle_spawning_with_recolour,
|
||||||
|
/client/proc/modify_shift_end,
|
||||||
/client/proc/start_vote,
|
/client/proc/start_vote,
|
||||||
/client/proc/hide_motion_tracker_feedback,
|
/client/proc/hide_motion_tracker_feedback,
|
||||||
/client/proc/reload_jobwhitelist, //ChompADD
|
/client/proc/reload_jobwhitelist, //ChompADD
|
||||||
@@ -574,6 +575,7 @@ var/list/admin_verbs_event_manager = list(
|
|||||||
/client/proc/toggle_random_events,
|
/client/proc/toggle_random_events,
|
||||||
/client/proc/modify_server_news,
|
/client/proc/modify_server_news,
|
||||||
/client/proc/toggle_spawning_with_recolour,
|
/client/proc/toggle_spawning_with_recolour,
|
||||||
|
/client/proc/modify_shift_end,
|
||||||
/client/proc/start_vote,
|
/client/proc/start_vote,
|
||||||
/client/proc/AdminCreateVirus,
|
/client/proc/AdminCreateVirus,
|
||||||
/client/proc/ReleaseVirus,
|
/client/proc/ReleaseVirus,
|
||||||
|
|||||||
@@ -711,3 +711,13 @@
|
|||||||
if("Simple Mob")
|
if("Simple Mob")
|
||||||
CONFIG_SET(flag/allow_simple_mob_recolor, !CONFIG_GET(flag/allow_simple_mob_recolor))
|
CONFIG_SET(flag/allow_simple_mob_recolor, !CONFIG_GET(flag/allow_simple_mob_recolor))
|
||||||
to_chat(usr, "You have [CONFIG_GET(flag/allow_simple_mob_recolor) ? "enabled" : "disabled"] newly spawned simple mobs to spawn with the recolour verb")
|
to_chat(usr, "You have [CONFIG_GET(flag/allow_simple_mob_recolor) ? "enabled" : "disabled"] newly spawned simple mobs to spawn with the recolour verb")
|
||||||
|
|
||||||
|
/client/proc/modify_shift_end()
|
||||||
|
set name = "Modify Shift End"
|
||||||
|
set desc = "Modifies the hard shift end time."
|
||||||
|
set category = "Server.Game"
|
||||||
|
|
||||||
|
if(!check_rights_for(src, R_ADMIN|R_EVENT|R_SERVER))
|
||||||
|
return
|
||||||
|
|
||||||
|
transfer_controller.modify_hard_end(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user