[MIRROR] some istype to macros (#9802)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-05 15:01:49 -07:00
committed by GitHub
parent 73486c399b
commit ed79946ade
409 changed files with 750 additions and 751 deletions

View File

@@ -73,7 +73,7 @@
// Check if there's actually an AI to deal with.
var/mob/living/silicon/ai/target_ai
if(istype(input_device, /mob/living/silicon/ai))
if(isAI(input_device))
target_ai = input_device
else
target_ai = locate(/mob/living/silicon/ai) in input_device.contents

View File

@@ -58,7 +58,7 @@
// Check if there's actually an AI to deal with.
var/mob/living/silicon/ai/target_ai
if(istype(input_device, /mob/living/silicon/ai))
if(isAI(input_device))
target_ai = input_device
else
target_ai = locate(/mob/living/silicon/ai) in input_device.contents

View File

@@ -212,7 +212,7 @@
var/mob/living/M
for(var/obj/item/piece in list(gloves,boots,helmet,chest))
if(piece.loc != src && !(wearer && piece.loc == wearer))
if(istype(piece.loc, /mob/living))
if(isliving(piece.loc))
M = piece.loc
M.unEquip(piece)
piece.forceMove(src)

View File

@@ -64,7 +64,7 @@
// Check if this is a hardsuit upgrade or a modification.
else if(istype(W,/obj/item/rig_module))
if(istype(src.loc,/mob/living/carbon/human))
if(ishuman(src.loc))
var/mob/living/carbon/human/H = src.loc
if(H.back == src || H.belt == src)
to_chat(user, span_danger("You can't install a hardsuit module while the suit is being worn."))
@@ -126,7 +126,7 @@
if(!to_remove)
return
if(istype(src.loc,/mob/living/carbon/human) && to_remove != "cell")
if(ishuman(src.loc) && to_remove != "cell")
var/mob/living/carbon/human/H = src.loc
if(H.back == src || H.belt == src)
to_chat(user, "You can't remove an installed device while the hardsuit is being worn.")