mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Fix robot lockdown through console and jetpack examine
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
if(mode.kickoff)
|
||||
to_chat(user, "<span class='warning'>You have been locked out from this console!</span>")
|
||||
|
||||
|
||||
/obj/machinery/computer/robotics/proc/is_authenticated(var/mob/user as mob)
|
||||
if(isobserver(user) && check_rights(R_ADMIN, 0, user))
|
||||
return 1
|
||||
@@ -116,8 +115,7 @@
|
||||
|
||||
message_admins("<span class='notice'>[key_name_admin(usr)] [target.canmove ? "locked down" : "released"] [key_name_admin(target)]!</span>")
|
||||
log_game("[key_name(usr)] [target.canmove ? "locked down" : "released"] [key_name(target)]!")
|
||||
target.canmove = !target.canmove
|
||||
target.lockcharge = !target.lockcharge
|
||||
target.SetLockdown(!target.lockcharge)
|
||||
to_chat(target, "[!target.lockcharge ? "<span class='notice'>Your lockdown has been lifted!</span>" : "<span class='alert'>You have been locked down!</span>"]")
|
||||
if(target.connected_ai)
|
||||
to_chat(target.connected_ai, "[!target.lockcharge ? "<span class='notice'>NOTICE - Cyborg lockdown lifted</span>" : "<span class='alert'>ALERT - Cyborg lockdown detected</span>"]: <a href='?src=[target.connected_ai.UID()];track=[html_encode(target.name)]'>[target.name]</a></span><br>")
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
air_contents.carbon_dioxide = (6*ONE_ATMOSPHERE)*volume/(R_IDEAL_GAS_EQUATION*T20C)
|
||||
|
||||
/obj/item/weapon/tank/jetpack/carbondioxide/examine(mob/user)
|
||||
if(!..(0))
|
||||
if(!..(user, 0))
|
||||
return
|
||||
|
||||
if(air_contents.carbon_dioxide < 10)
|
||||
|
||||
Reference in New Issue
Block a user