[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 23:01:49 +01:00
committed by GitHub
co-authored by Kashargul
parent 73486c399b
commit ed79946ade
409 changed files with 750 additions and 751 deletions
@@ -45,7 +45,7 @@
if(!do_mob(user, target, time))
return
if(istype(target, /mob/living/carbon/human))
if(ishuman(target))
var/mob/living/carbon/human/victim = target
var/obj/item/safe_thing = null
@@ -23,7 +23,7 @@
var/mob/living/L = user
if(M == L)
if(istype(M, /mob/living/carbon/human))
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/affecting = H.get_organ(check_zone(L.zone_sel.selecting))
if(!affecting)
@@ -44,7 +44,7 @@
qdel(src)
return 1
else if(istype(M, /mob/living/carbon/human))
else if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/affecting = H.get_organ(check_zone(L.zone_sel.selecting))
if(!affecting)
@@ -24,7 +24,7 @@
/obj/item/reagent_containers/pill/attack(mob/M as mob, mob/user as mob)
if(M == user)
if(istype(M, /mob/living/carbon/human))
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.check_has_mouth())
to_chat(user, "Where do you intend to put \the [src]? You don't have a mouth!")
@@ -43,7 +43,7 @@
qdel(src)
return 1
else if(istype(M, /mob/living/carbon/human))
else if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.check_has_mouth())
@@ -133,7 +133,7 @@
var/datum/reagent/B
drawing = 1
if(istype(T, /mob/living/carbon/human))
if(ishuman(T))
var/mob/living/carbon/human/H = T
if(H.species && !H.should_have_organ(O_HEART))
H.reagents.trans_to_obj(src, amount)
@@ -261,7 +261,7 @@
return
/obj/item/reagent_containers/syringe/proc/syringestab(mob/living/carbon/target as mob, mob/living/carbon/user as mob)
if(istype(target, /mob/living/carbon/human))
if(ishuman(target))
var/mob/living/carbon/human/H = target
+2 -2
View File
@@ -34,7 +34,7 @@
..()
if(!data["donor"] || istype(data["donor"], /mob/living/carbon/human))
if(!data["donor"] || ishuman(data["donor"]))
blood_splatter(T, src, 1)
else if(istype(data["donor"], /mob/living/carbon/alien))
var/obj/effect/decal/cleanable/blood/B = blood_splatter(T, src, 1)
@@ -272,7 +272,7 @@
L.water_act(amount / 25) // Div by 25, as water_act multiplies it by 5 in order to calculate firestack modification.
remove_self(needed)
// Put out cigarettes if splashed.
if(istype(L, /mob/living/carbon/human))
if(ishuman(L))
var/mob/living/carbon/human/H = L
if(H.wear_mask)
if(istype(H.wear_mask, /obj/item/clothing/mask/smokable))
+1 -1
View File
@@ -411,7 +411,7 @@
M.take_organ_damage(0, removed * power * 0.2) //burn damage, since it causes chemical burns. Acid doesn't make bones shatter, like brute trauma would.
return
if(!M.unacidable && removed > 0)
if(istype(M, /mob/living/carbon/human) && volume >= meltdose)
if(ishuman(M) && volume >= meltdose)
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/affecting = H.get_organ(BP_HEAD)
if(affecting)
@@ -848,7 +848,7 @@
if(alien == IS_SKRELL) //Larger eyes means bigger targets.
effective_strength = 8
if(istype(M, /mob/living/carbon/human))
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.can_feel_pain())
return
+1 -1
View File
@@ -504,7 +504,7 @@
/datum/reagent/space_cleaner/touch_mob(var/mob/living/L, var/amount)
..()
if(istype(L, /mob/living/carbon/human))
if(ishuman(L))
var/mob/living/carbon/human/H = L
if(H.wear_mask)
if(istype(H.wear_mask, /obj/item/clothing/mask/smokable))