converts our spans (#9185)

This commit is contained in:
Kashargul
2024-10-07 20:47:23 +02:00
committed by GitHub
parent f4155aa973
commit a92a42b85b
162 changed files with 1360 additions and 1269 deletions
+7 -7
View File
@@ -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)