mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user