mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Log nuclear arming and disarming (#56451)
Recently a fluke-ops round went down there the nukies armed then immediately disarmed the nuke and no one was sure who disarmed it by accident. When I went to check the logs I realized we don't log who starts or stops a station destroying event? This PR adds messaging and logging to arming and disarming nuclear devices.
This commit is contained in:
@@ -409,11 +409,14 @@
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/nuclearbomb/proc/set_active()
|
||||
var/turf/our_turf = get_turf(src)
|
||||
if(safety)
|
||||
to_chat(usr, "<span class='danger'>The safety is still on.</span>")
|
||||
return
|
||||
timing = !timing
|
||||
if(timing)
|
||||
message_admins("\The [src] was armed at [ADMIN_VERBOSEJMP(our_turf)] by [ADMIN_LOOKUPFLW(usr)].")
|
||||
log_game("\The [src] was armed at [loc_name(our_turf)] by [key_name(usr)].")
|
||||
previous_level = get_security_level()
|
||||
detonation_timer = world.time + (timer_set * 10)
|
||||
for(var/obj/item/pinpointer/nuke/syndicate/S in GLOB.pinpointer_list)
|
||||
@@ -421,6 +424,8 @@
|
||||
countdown.start()
|
||||
set_security_level("delta")
|
||||
else
|
||||
message_admins("\The [src] at [ADMIN_VERBOSEJMP(our_turf)] was disarmed by [ADMIN_LOOKUPFLW(usr)].")
|
||||
log_game("\The [src] at [loc_name(our_turf)] was disarmed by [key_name(usr)].")
|
||||
detonation_timer = null
|
||||
set_security_level(previous_level)
|
||||
for(var/obj/item/pinpointer/nuke/syndicate/S in GLOB.pinpointer_list)
|
||||
|
||||
Reference in New Issue
Block a user