[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

@@ -18,16 +18,16 @@
if(I.has_tool_quality(TOOL_SCREWDRIVER))
if(occupier)
if(stat & (NOPOWER|BROKEN))
to_chat(user, "<span class='warning'>The screws on [name]'s screen won't budge.</span>")
to_chat(user, span_warning("The screws on [name]'s screen won't budge."))
else
to_chat(user, "<span class='warning'>The screws on [name]'s screen won't budge and it emits a warning beep.</span>")
to_chat(user, span_warning("The screws on [name]'s screen won't budge and it emits a warning beep."))
return
if(istype(I, /obj/item/aicard))
if(stat & (NOPOWER|BROKEN))
to_chat(user, "<span class='warning'>This terminal isn't functioning right now.</span>")
to_chat(user, span_warning("This terminal isn't functioning right now."))
return
if(restoring)
to_chat(user, "<span class='danger'>Terminal is busy restoring [occupier] right now.</span>")
to_chat(user, span_danger("Terminal is busy restoring [occupier] right now."))
return
var/obj/item/aicard/card = I
@@ -36,7 +36,7 @@
occupier = null
else if(card.carded_ai)
var/mob/living/silicon/ai/new_occupant = card.carded_ai
to_chat(new_occupant, "<span class='notice'>You have been transferred into a stationary terminal. Sadly there is no remote access from here.</span>")
to_chat(new_occupant, span_notice("You have been transferred into a stationary terminal. Sadly there is no remote access from here."))
to_chat(user, "<span class='notice'>Transfer Successful:</span> [new_occupant] placed within stationary terminal.")
new_occupant.forceMove(src)
new_occupant.cancel_camera()
@@ -45,7 +45,7 @@
card.clear()
update_icon()
else
to_chat(user, "<span class='notice'>There is no AI loaded onto this computer, and no AI loaded onto [I]. What exactly are you trying to do here?</span>")
to_chat(user, span_notice("There is no AI loaded onto this computer, and no AI loaded onto [I]. What exactly are you trying to do here?"))
return ..()
/obj/machinery/computer/aifixer/attack_hand(mob/user)
@@ -92,7 +92,7 @@
switch(action)
if("PRG_beginReconstruction")
if(occupier?.health < 100)
to_chat(usr, "<span class='notice'>Reconstruction in progress. This will take several minutes.</span>")
to_chat(usr, span_notice("Reconstruction in progress. This will take several minutes."))
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 25, FALSE)
restoring = TRUE
var/mob/observer/dead/ghost = occupier.get_ghost()
@@ -132,4 +132,4 @@
if (UNCONSCIOUS)
. += "ai-fixer-404"
else
. += "ai-fixer-empty"
. += "ai-fixer-empty"