mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 04:28:12 +01:00
refactors most spans
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
if(!target_ladder)
|
||||
return
|
||||
if(!(M.loc == loc) && !M.Move(get_turf(src)))
|
||||
to_chat(M, "<span class='notice'>You fail to reach \the [src].</span>")
|
||||
to_chat(M, span_notice("You fail to reach \the [src]."))
|
||||
return
|
||||
|
||||
climbLadder(M, target_ladder)
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
/obj/structure/ladder/proc/getTargetLadder(var/mob/M)
|
||||
if((!target_up && !target_down) || (target_up && !istype(target_up.loc, /turf) || (target_down && !istype(target_down.loc,/turf))))
|
||||
to_chat(M, "<span class='notice'>\The [src] is incomplete and can't be climbed.</span>")
|
||||
to_chat(M, span_notice("\The [src] is incomplete and can't be climbed."))
|
||||
return
|
||||
if(target_down && target_up)
|
||||
var/direction = tgui_alert(M,"Do you want to go up or down?", "Ladder", list("Up", "Down", "Cancel"))
|
||||
@@ -89,10 +89,10 @@
|
||||
|
||||
/mob/proc/may_climb_ladders(var/ladder)
|
||||
if(!Adjacent(ladder))
|
||||
to_chat(src, "<span class='warning'>You need to be next to \the [ladder] to start climbing.</span>")
|
||||
to_chat(src, span_warning("You need to be next to \the [ladder] to start climbing."))
|
||||
return FALSE
|
||||
if(incapacitated())
|
||||
to_chat(src, "<span class='warning'>You are physically unable to climb \the [ladder].</span>")
|
||||
to_chat(src, span_warning("You are physically unable to climb \the [ladder]."))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -105,13 +105,13 @@
|
||||
"You begin climbing [direction] \the [src]!",
|
||||
"You hear the grunting and clanging of a metal ladder being used.")
|
||||
|
||||
target_ladder.audible_message("<span class='notice'>You hear something coming [direction] \the [src]</span>", runemessage = "clank clank")
|
||||
target_ladder.audible_message(span_notice("You hear something coming [direction] \the [src]"), runemessage = "clank clank")
|
||||
|
||||
if(do_after(M, climb_time, src))
|
||||
var/turf/T = get_turf(target_ladder)
|
||||
for(var/atom/A in T)
|
||||
if(!A.CanPass(M, M.loc, 1.5, 0))
|
||||
to_chat(M, "<span class='notice'>\The [A] is blocking \the [src].</span>")
|
||||
to_chat(M, span_notice("\The [A] is blocking \the [src]."))
|
||||
return FALSE
|
||||
return M.forceMove(T) //VOREStation Edit - Fixes adminspawned ladders
|
||||
|
||||
|
||||
Reference in New Issue
Block a user