[s]Restoring the safeties on the holodeck actually works. (#47272)

* Restoring the safeties on the holodeck actually works.

* adds feedback message for safety restoration
This commit is contained in:
spessbandit
2019-10-22 04:38:52 -07:00
committed by Rob Bailey
parent 63f6fd8a63
commit a243a26945
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -109,7 +109,7 @@
if(!ispath(program_to_load))
return FALSE
var/valid = FALSE
var/list/checked = program_cache
var/list/checked = typecacheof(program_cache)
if(obj_flags & EMAGGED)
checked |= emag_programs
for(var/prog in checked)
@@ -124,10 +124,11 @@
if(A)
load_program(A)
if("safety")
obj_flags ^= EMAGGED
if((obj_flags & EMAGGED) && program && emag_programs[program.name])
if((obj_flags & EMAGGED) && program)
emergency_shutdown()
nerf(obj_flags & EMAGGED)
obj_flags ^= EMAGGED
say("Safeties restored. Restarting...")
/obj/machinery/computer/holodeck/process()
if(damaged && prob(10))