mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
converts our spans (#9185)
This commit is contained in:
@@ -61,16 +61,16 @@
|
||||
detect(user)
|
||||
if(!linked_pad || QDELETED(linked_pad))
|
||||
if(!map_pad_link_id || !initMappedLink())
|
||||
to_chat(user, "<span class='warning'>There is no linked pad!</span>")
|
||||
to_chat(user, span_warning("There is no linked pad!"))
|
||||
return
|
||||
if(teleporting)
|
||||
to_chat(user, "<span class='warning'>[src] is charging up. Please wait.</span>")
|
||||
to_chat(user, span_warning("[src] is charging up. Please wait."))
|
||||
return
|
||||
if(world.time < last_teleport + teleport_cooldown)
|
||||
to_chat(user, "<span class='warning'>[src] is recharging power. Please wait [round((last_teleport + teleport_cooldown - world.time)/10)] seconds.</span>")
|
||||
to_chat(user, span_warning("[src] is recharging power. Please wait [round((last_teleport + teleport_cooldown - world.time)/10)] seconds."))
|
||||
return
|
||||
if(linked_pad.teleporting)
|
||||
to_chat(user, "<span class='warning'>Linked pad is busy. Please wait.</span>")
|
||||
to_chat(user, span_warning("Linked pad is busy. Please wait."))
|
||||
return
|
||||
src.add_fingerprint(user)
|
||||
startteleport(user)
|
||||
@@ -102,7 +102,7 @@
|
||||
ready = 1
|
||||
start_charge()
|
||||
else
|
||||
to_chat(user, "<span class='warning'>Pad detect failed. Are all eight pieces linked?</span>")
|
||||
to_chat(user, span_warning("Pad detect failed. Are all eight pieces linked?"))
|
||||
|
||||
/obj/machinery/hyperpad/centre/proc/startteleport(mob/user)
|
||||
if(!linked_pad)
|
||||
@@ -123,7 +123,7 @@
|
||||
teleporting = 0
|
||||
return
|
||||
if(!linked_pad || QDELETED(linked_pad))
|
||||
to_chat(user, "<span class='warning'>Linked pad is not responding to ping. Teleport aborted.</span>")
|
||||
to_chat(user, span_warning("Linked pad is not responding to ping. Teleport aborted."))
|
||||
teleporting = 0
|
||||
return
|
||||
|
||||
@@ -175,4 +175,4 @@
|
||||
timer += teleport_cooldown/8
|
||||
|
||||
/obj/machinery/hyperpad/centre/proc/animate_charge(var/obj/machinery/hyperpad/Pad, var/mutable_appearance/color)
|
||||
Pad.add_overlay(color)
|
||||
Pad.add_overlay(color)
|
||||
|
||||
Reference in New Issue
Block a user