pads that work without power

This commit is contained in:
Metis
2024-10-07 19:19:11 -04:00
parent 77a599a1ad
commit 8cdd35f733
5 changed files with 34 additions and 7 deletions
+2 -2
View File
@@ -135,11 +135,11 @@
if(!src || QDELETED(src))
teleporting = FALSE
return
if(machine_stat & NOPOWER)
if(needs_power && (machine_stat & NOPOWER)) // GS13 EDIT
to_chat(user, "<span class='warning'>[src] is unpowered!</span>")
teleporting = FALSE
return
if(!target_pad || QDELETED(target_pad) || target_pad.machine_stat & NOPOWER)
if(!target_pad || QDELETED(target_pad) || (needs_power && (target_pad.machine_stat & NOPOWER))) // GS13 EDIT
to_chat(user, "<span class='warning'>Linked pad is not responding to ping. Teleport aborted.</span>")
teleporting = FALSE
return