mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
some istype to macros (#16826)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
set category = "Object"
|
||||
set src in view(1)
|
||||
|
||||
if(usr.incapacitated() || !istype(usr, /mob/living))
|
||||
if(usr.incapacitated() || !isliving(usr))
|
||||
to_chat(usr, span_warning("You can't do that."))
|
||||
return
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
set category = "Object"
|
||||
set src in view(1)
|
||||
|
||||
if(usr.incapacitated() || !istype(usr, /mob/living))
|
||||
if(usr.incapacitated() || !isliving(usr))
|
||||
to_chat(usr, span_warning("You can't do that."))
|
||||
return
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
set category = "Object"
|
||||
set src in view(1)
|
||||
|
||||
if(usr.incapacitated() || !istype(usr, /mob/living))
|
||||
if(usr.incapacitated() || !isliving(usr))
|
||||
to_chat(usr, span_warning("You can't do that."))
|
||||
return
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
return 1
|
||||
|
||||
// Admin override - allows operation of any computer as aghosted admin, as if you had any required access.
|
||||
if(istype(user, /mob/observer/dead) && check_rights(R_ADMIN|R_EVENT, 0, user))
|
||||
if(isobserver(user) && check_rights(R_ADMIN|R_EVENT, 0, user))
|
||||
return 1
|
||||
|
||||
if(!istype(user))
|
||||
|
||||
Reference in New Issue
Block a user