mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #6509 from mwerezak/door-message
Updates synth airlock interface messages
This commit is contained in:
@@ -885,14 +885,17 @@ About the new airlock wires panel:
|
||||
return
|
||||
|
||||
/obj/machinery/door/airlock/proc/check_synth_access(mob/user as mob)
|
||||
if(emagged)
|
||||
user << "<span class='warning'>Unable to interface: Airlock is unresponsive.</span>"
|
||||
if(operating < 0) //emagged
|
||||
user << "<span class='warning'>Unable to interface: Internal error.</span>"
|
||||
return 0
|
||||
if(!src.canAIControl())
|
||||
if(src.canAIHack(user))
|
||||
src.hack(user)
|
||||
else
|
||||
user << "<span class='warning'>Airlock AI control has been blocked with a firewall.</span>"
|
||||
if (src.isAllPowerLoss()) //don't really like how this gets checked a second time, but not sure how else to do it.
|
||||
user << "<span class='warning'>Unable to interface: Connection timed out.</span>"
|
||||
else
|
||||
user << "<span class='warning'>Unable to interface: Connection refused.</span>"
|
||||
return 0
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user