mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user