[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

@@ -93,7 +93,7 @@
/obj/machinery/shield/hitby(AM as mob|obj)
//Let everyone know we've been hit!
visible_message("<span class='danger'>\The [src] was hit by [AM].</span>")
visible_message(span_danger("\The [src] was hit by [AM]."))
//Super realistic, resource-intensive, real-time damage calculations.
var/tforce = 0
@@ -291,13 +291,13 @@
else if(istype(W, /obj/item/stack/cable_coil) && malfunction && is_open)
var/obj/item/stack/cable_coil/coil = W
to_chat(user, "<span class='notice'>You begin to replace the wires.</span>")
to_chat(user, span_notice("You begin to replace the wires."))
//if(do_after(user, min(60, round( ((getMaxHealth()/health)*10)+(malfunction*10) ))) //Take longer to repair heavier damage
if(do_after(user, 30))
if (coil.use(1))
health = max_health
malfunction = 0
to_chat(user, "<span class='notice'>You repair the [src]!</span>")
to_chat(user, span_notice("You repair the [src]!"))
update_icon()
else if(W.has_tool_quality(TOOL_WRENCH))