enable greps properly (#10454)

This commit is contained in:
Kashargul
2025-03-18 16:37:54 +01:00
committed by GitHub
parent 97f2dc3ce6
commit e174881f69
105 changed files with 108 additions and 111 deletions

View File

@@ -1,3 +1,3 @@
/datum/category_item/autolathe/general/radio_subspace
name = "subspace radio"
path =/obj/item/radio/subspace
path =/obj/item/radio/subspace

View File

@@ -14,4 +14,4 @@
)
cost = 50
containertype = /obj/structure/closet/crate/secure/veymed
containername = "Surgery Kit Bag crate"
containername = "Surgery Kit Bag crate"

View File

@@ -5,4 +5,4 @@
)
cost = 45
containertype = /obj/structure/closet/crate/ward
containername = "Borg-O's crate"
containername = "Borg-O's crate"

View File

@@ -34,4 +34,4 @@
)
cost = 150
containertype = /obj/structure/closet/crate/secure/gear
containername = "Expirmental Capture crate"
containername = "Expirmental Capture crate"

View File

@@ -0,0 +1,41 @@
/datum/tgs_event_handler/impl
var/datum/timedevent/reattach_timer
/datum/tgs_event_handler/impl/HandleEvent(event_code, ...)
switch(event_code)
if(TGS_EVENT_REBOOT_MODE_CHANGE)
var/list/reboot_mode_lookup = list ("[TGS_REBOOT_MODE_NORMAL]" = "be normal", "[TGS_REBOOT_MODE_SHUTDOWN]" = "shutdown the server", "[TGS_REBOOT_MODE_RESTART]" = "hard restart the server")
var/old_reboot_mode = args[2]
var/new_reboot_mode = args[3]
message_admins("TGS: Reboot will no longer [reboot_mode_lookup["[old_reboot_mode]"]], it will instead [reboot_mode_lookup["[new_reboot_mode]"]]")
if(TGS_EVENT_PORT_SWAP)
message_admins("TGS: Changing port from [world.port] to [args[2]]")
if(TGS_EVENT_INSTANCE_RENAMED)
message_admins("TGS: Instance renamed to from [world.TgsInstanceName()] to [args[2]]")
if(TGS_EVENT_COMPILE_START)
message_admins("TGS: Deployment started, new game version incoming...")
if(TGS_EVENT_COMPILE_CANCELLED)
message_admins("TGS: Deployment cancelled!")
if(TGS_EVENT_COMPILE_FAILURE)
message_admins("TGS: Deployment failed!")
if(TGS_EVENT_DEPLOYMENT_COMPLETE)
message_admins("TGS: Deployment complete!")
to_chat(world, span_boldannounce("Server updated, changes will be applied on the next round..."))
if(TGS_EVENT_WATCHDOG_DETACH)
message_admins("TGS restarting...")
reattach_timer = addtimer(CALLBACK(src, PROC_REF(LateOnReattach)), 1 MINUTES, TIMER_STOPPABLE)
if(TGS_EVENT_WATCHDOG_REATTACH)
var/datum/tgs_version/old_version = world.TgsVersion()
var/datum/tgs_version/new_version = args[2]
if(!old_version.Equals(new_version))
to_chat(world, span_boldannounce("TGS updated to v[new_version.deprefixed_parameter]"))
else
message_admins("TGS: Back online")
if(reattach_timer)
deltimer(reattach_timer)
reattach_timer = null
if(TGS_EVENT_WATCHDOG_SHUTDOWN)
to_chat_immediate(world, span_boldannounce("Server is shutting down!"))
/datum/tgs_event_handler/impl/proc/LateOnReattach()
message_admins("Warning: TGS hasn't notified us of it coming back for a full minute! Is there a problem?")