mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +01:00
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:
@@ -78,18 +78,18 @@
|
||||
return FALSE
|
||||
var/blocking_object = density_check()
|
||||
if(blocking_object)
|
||||
to_chat(user, "<span class='warning'>You cannot climb onto [src], as it is blocked by \a [blocking_object]!</span>")
|
||||
to_chat(user, SPAN_WARNING("You cannot climb onto [src], as it is blocked by \a [blocking_object]!"))
|
||||
return FALSE
|
||||
|
||||
if(!isturf(loc))
|
||||
return FALSE
|
||||
var/freerunner_multiplier = HAS_TRAIT(user, TRAIT_FREERUNNER) ? 0.8 : 1
|
||||
if(HAS_MIND_TRAIT(user, TRAIT_TABLE_LEAP))
|
||||
user.visible_message("<span class='warning'>[user] gets ready to vault up onto [src]!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] gets ready to vault up onto [src]!"))
|
||||
if(!do_after(user, 0.5 SECONDS * freerunner_multiplier, target = src))
|
||||
return FALSE
|
||||
else
|
||||
user.visible_message("<span class='warning'>[user] starts climbing onto [src]!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] starts climbing onto [src]!"))
|
||||
if(!do_after(user, 5 SECONDS * freerunner_multiplier, target = src))
|
||||
return FALSE
|
||||
|
||||
@@ -104,9 +104,9 @@
|
||||
if(do_climb(user))
|
||||
user.forceMove(get_turf(src))
|
||||
if(HAS_MIND_TRAIT(user, TRAIT_TABLE_LEAP))
|
||||
user.visible_message("<span class='warning'>[user] leaps up onto [src]!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] leaps up onto [src]!"))
|
||||
else
|
||||
user.visible_message("<span class='warning'>[user] climbs onto [src]!</span>")
|
||||
user.visible_message(SPAN_WARNING("[user] climbs onto [src]!"))
|
||||
if(QDELETED(src)) // Table was destroyed while we were climbing it
|
||||
return
|
||||
climbers -= user
|
||||
@@ -126,14 +126,14 @@
|
||||
return //No spamming this on people.
|
||||
|
||||
M.Weaken(10 SECONDS)
|
||||
to_chat(M, "<span class='warning'>You topple as \the [src] moves under you!</span>")
|
||||
to_chat(M, SPAN_WARNING("You topple as \the [src] moves under you!"))
|
||||
|
||||
if(prob(25))
|
||||
|
||||
var/damage = rand(15,30)
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!istype(H))
|
||||
to_chat(H, "<span class='warning'>You land heavily!</span>")
|
||||
to_chat(H, SPAN_WARNING("You land heavily!"))
|
||||
M.adjustBruteLoss(damage)
|
||||
return
|
||||
|
||||
@@ -152,12 +152,12 @@
|
||||
affecting = H.get_organ("head")
|
||||
|
||||
if(affecting)
|
||||
to_chat(M, "<span class='warning'>You land heavily on your [affecting.name]!</span>")
|
||||
to_chat(M, SPAN_WARNING("You land heavily on your [affecting.name]!"))
|
||||
affecting.receive_damage(damage, 0)
|
||||
if(affecting.parent)
|
||||
affecting.parent.add_autopsy_data("Misadventure", damage)
|
||||
else
|
||||
to_chat(H, "<span class='warning'>You land heavily!</span>")
|
||||
to_chat(H, SPAN_WARNING("You land heavily!"))
|
||||
H.adjustBruteLoss(damage)
|
||||
|
||||
H.UpdateDamageIcon()
|
||||
@@ -168,25 +168,25 @@
|
||||
if(!Adjacent(user))
|
||||
return FALSE
|
||||
if(user.restrained() || user.buckled)
|
||||
to_chat(user, "<span class='notice'>You need your hands and legs free for this.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You need your hands and legs free for this."))
|
||||
return FALSE
|
||||
if(HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
|
||||
return FALSE
|
||||
if(issilicon(user))
|
||||
to_chat(user, "<span class='notice'>You need hands for this.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You need hands for this."))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/structure/proc/get_climb_text()
|
||||
return "<span class='notice'>You can <b>Click-Drag</b> yourself to [src] to climb on top of it after a short delay.</span>"
|
||||
return SPAN_NOTICE("You can <b>Click-Drag</b> yourself to [src] to climb on top of it after a short delay.")
|
||||
|
||||
/obj/structure/examine(mob/user)
|
||||
. = ..()
|
||||
if(!(resistance_flags & INDESTRUCTIBLE))
|
||||
if(resistance_flags & ON_FIRE)
|
||||
. += "<span class='warning'>It's on fire!</span>"
|
||||
. += SPAN_WARNING("It's on fire!")
|
||||
if(broken)
|
||||
. += "<span class='notice'>It appears to be broken.</span>"
|
||||
. += SPAN_NOTICE("It appears to be broken.")
|
||||
var/examine_status = examine_status(user)
|
||||
if(examine_status)
|
||||
. += examine_status
|
||||
@@ -202,7 +202,7 @@
|
||||
return "It appears heavily damaged."
|
||||
if(0 to 25)
|
||||
if(!broken)
|
||||
return "<span class='warning'>It's falling apart!</span>"
|
||||
return SPAN_WARNING("It's falling apart!")
|
||||
|
||||
/obj/structure/proc/prevents_buckled_mobs_attacking()
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user