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
+3 -3
View File
@@ -583,14 +583,14 @@
if(G.affecting.stat == DEAD)
var/shield_chance = min(80, (30 * (M.mob_size / 10))) //Small mobs have a harder time keeping a dead body as a shield than a human-sized one. Unathi would have an easier job, if they are made to be SIZE_LARGE in the future. -Mech
if(prob(shield_chance))
visible_message("<span class='danger'>\The [M] uses [G.affecting] as a shield!</span>")
visible_message(span_danger("\The [M] uses [G.affecting] as a shield!"))
if(bump_targets)
if(Bump(G.affecting))
return
else
visible_message("<span class='danger'>\The [M] tries to use [G.affecting] as a shield, but fails!</span>")
visible_message(span_danger("\The [M] tries to use [G.affecting] as a shield, but fails!"))
else
visible_message("<span class='danger'>\The [M] uses [G.affecting] as a shield!</span>")
visible_message(span_danger("\The [M] uses [G.affecting] as a shield!"))
if(bump_targets)
if(Bump(G.affecting))
return //If Bump() returns 0 (keep going) then we continue on to attack M.