[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -66,7 +66,7 @@
/obj/machinery/computer/looking_glass/tgui_data(mob/user, datum/tgui/ui, datum/tgui_state/state)
var/list/data = ..()
var/list/program_list = list()
for(var/P in supported_programs)
program_list.Add(P)
@@ -88,7 +88,7 @@
/obj/machinery/computer/looking_glass/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
if(..())
return TRUE
switch(action)
if("program")
if(ready)
@@ -100,7 +100,7 @@
current_program = prog
load_program(prog)
else
visible_message("<span class='warning'>ERROR. Recalibrating displays.</span>")
visible_message(span_warning("ERROR. Recalibrating displays."))
return TRUE
if("gravity")
@@ -118,7 +118,7 @@
if (!emagged)
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
to_chat(user, "<span class='notice'>You unlock several programs that were hidden somewhere in memory.</span>")
to_chat(user, span_notice("You unlock several programs that were hidden somewhere in memory."))
log_game("[key_name(usr)] emagged the [name]")
return 1
return
@@ -142,7 +142,7 @@
if(world.time < (last_gravity_change + 3 SECONDS))
if(world.time < (last_gravity_change + 1 SECOND))
return
visible_message("<span class='warning'>ERROR. Recalibrating gravity field.</span>")
visible_message(span_warning("ERROR. Recalibrating gravity field."))
return
last_gravity_change = world.time
@@ -165,4 +165,4 @@
var/oldstat = stat
..()
if (stat != oldstat && (stat & NOPOWER))
unload_program()
unload_program()