some istype to macros (#16826)

This commit is contained in:
Kashargul
2025-01-06 06:45:02 +10:00
committed by GitHub
parent c2c248d3b9
commit 59b9802628
409 changed files with 760 additions and 763 deletions
@@ -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))