refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+6 -6
View File
@@ -35,7 +35,7 @@
/obj/structure/cult/pylon/swarm/pylonhit(var/damage)
if(!isbroken)
if(prob(1 + damage * 3))
visible_message("<span class='danger'>[shatter_message]</span>")
visible_message(span_danger("[shatter_message]"))
STOP_PROCESSING(SSobj, src)
playsound(src,shatter_sound, 75, 1)
isbroken = 1
@@ -47,8 +47,8 @@
if(!isbroken)
if(prob(1 + damage * 3))
user.visible_message(
"<span class='danger'>[user] smashed \the [src]!</span>",
"<span class='warning'>You hit \the [src], and its crystal breaks apart!</span>",
span_danger("[user] smashed \the [src]!"),
span_warning("You hit \the [src], and its crystal breaks apart!"),
"You hear a tinkle of crystalline shards."
)
STOP_PROCESSING(SSobj, src)
@@ -115,7 +115,7 @@
/obj/structure/cult/pylon/swarm/defender/pylonhit(var/damage)
if(!isbroken)
if(prob(1 + damage * 3) && damage >= 25)
visible_message("<span class='danger'>[shatter_message]</span>")
visible_message(span_danger("[shatter_message]"))
STOP_PROCESSING(SSobj, src)
playsound(src,shatter_sound, 75, 1)
isbroken = 1
@@ -127,8 +127,8 @@
if(!isbroken)
if(prob(1 + damage * 2) && damage >= 15)
user.visible_message(
"<span class='danger'>[user] smashed \the [src]!</span>",
"<span class='warning'>You hit \the [src], and its crystal breaks apart!</span>",
span_danger("[user] smashed \the [src]!"),
span_warning("You hit \the [src], and its crystal breaks apart!"),
"You hear a tinkle of crystalline shards."
)
STOP_PROCESSING(SSobj, src)