Convert most spans to defines (#31080)

* spanish?

* aaaagain

* keep maptext

* Update robot_items.dm

* Update span_defines.dm

* compiles

* Update silicon_mob.dm

* compile
This commit is contained in:
kyunkyunkyun
2025-12-13 23:55:48 +00:00
committed by GitHub
parent e5f0a6fffb
commit b0463d3c83
1624 changed files with 15737 additions and 15581 deletions
@@ -51,4 +51,4 @@
/mob/living/basic/mining/goldgrub/bullet_act(obj/projectile/P)
if(P.armor_penetration_flat + P.armor_penetration_percentage >= 100)
return ..()
visible_message("<span class='danger'>[P.name] was repelled by [name]'s girth!</span>")
visible_message(SPAN_DANGER("[P.name] was repelled by [name]'s girth!"))
@@ -40,5 +40,5 @@
/// Begin the chase to kill the mob in time
/datum/ai_behavior/burrow_away/proc/burrow(mob/living/pawn)
if(pawn.stat == CONSCIOUS)
pawn.visible_message("<span class='danger'>[pawn] buries into the ground, vanishing from sight!</span>")
pawn.visible_message(SPAN_DANGER("[pawn] buries into the ground, vanishing from sight!"))
qdel(pawn)
@@ -141,5 +141,5 @@
mind?.transfer_to(L)
L.faction = faction.Copy()
L.setDir(dir)
visible_message("<span class='notice'>[src] grows up into [L].</span>")
visible_message(SPAN_NOTICE("[src] grows up into [L]."))
qdel(src)
@@ -149,8 +149,8 @@
return ..()
/mob/living/basic/mining/hivelordbrood/blood/proc/reabsorb_host(mob/living/carbon/C)
C.visible_message("<span class='notice'>[src] is reabsorbed by [C]'s body.</span>", \
"<span class='notice'>[src] is reabsorbed by your body.</span>")
C.visible_message(SPAN_NOTICE("[src] is reabsorbed by [C]'s body."), \
SPAN_NOTICE("[src] is reabsorbed by your body."))
transfer_reagents(C)
death()
@@ -212,7 +212,7 @@
dwarf_mob = TRUE
/mob/living/basic/mining/hivelord/legion/death(gibbed)
visible_message("<span class='warning'>The skulls on [src] wail in anger as they flee from their dying host!</span>")
visible_message(SPAN_WARNING("The skulls on [src] wail in anger as they flee from their dying host!"))
var/turf/T = get_turf(src)
if(T)
if(stored_mob)
@@ -254,13 +254,13 @@
/mob/living/basic/mining/hivelordbrood/legion/proc/infest(mob/living/carbon/human/H)
if(H?.dna?.species && !H.dna.species.can_be_legion_infested())
return
visible_message("<span class='warning'>[name] burrows into the flesh of [H]!</span>")
visible_message(SPAN_WARNING("[name] burrows into the flesh of [H]!"))
var/mob/living/basic/mining/hivelord/legion/L
if(HAS_TRAIT(H, TRAIT_DWARF)) // dwarf legions aren't just fluff!
L = new /mob/living/basic/mining/hivelord/legion/dwarf(H.loc)
else
L = new(H.loc)
visible_message("<span class='warning'>[L] staggers to [L.p_their()] feet!</span>")
visible_message(SPAN_WARNING("[L] staggers to [L.p_their()] feet!"))
H.death()
H.adjustBruteLoss(1000)
L.stored_mob = H
@@ -322,9 +322,9 @@
if(faction_check(faction, L.faction, FALSE))
continue
L.visible_message("<span class='danger'>[L] was thrown by [src]!</span>",
"<span class='userdanger'>You feel a strong force throwing you!</span>",
"<span class='danger'>You hear a thud.</span>")
L.visible_message(SPAN_DANGER("[L] was thrown by [src]!"),
SPAN_USERDANGER("You feel a strong force throwing you!"),
SPAN_DANGER("You hear a thud."))
var/atom/throw_target = get_edge_target_turf(L, get_dir(src, get_step_away(L, src)))
L.throw_at(throw_target, 4, 4)
var/limb_to_hit = L.get_organ(pick(BODY_ZONE_HEAD, BODY_ZONE_CHEST, BODY_ZONE_R_ARM, BODY_ZONE_L_ARM, BODY_ZONE_R_LEG, BODY_ZONE_L_LEG))
@@ -30,14 +30,14 @@
/mob/living/basic/mining/bullet_act(obj/projectile/P) // Reduces damage from most projectiles to curb off-screen kills
if(P.damage < 30 && P.damage_type != BRUTE && has_laser_resist)
P.damage = (P.damage / 3)
visible_message("<span class='danger'>[P] has a reduced effect on [src]!</span>")
visible_message(SPAN_DANGER("[P] has a reduced effect on [src]!"))
..()
/mob/living/basic/mining/hitby(atom/movable/AM, skipcatch, hitpush, blocked, datum/thrownthing/throwingdatum) // No floor tiling them to death, wiseguy
if(isitem(AM))
var/obj/item/T = AM
if(T.throwforce <= 20)
visible_message("<span class='notice'>[T] [throw_blocked_message] [src.name]!</span>")
visible_message(SPAN_NOTICE("[T] [throw_blocked_message] [src.name]!"))
return
..()