Changes the is_changeling and is_mindslave procs into proper defines (#25212)

* Changes these procs into proper defines

* Henri review
This commit is contained in:
DGamerL
2024-04-28 20:57:26 +00:00
committed by GitHub
parent fc7acc4597
commit fb027f73dd
24 changed files with 34 additions and 37 deletions
@@ -58,7 +58,7 @@
if(sponge)
return min(sponge.damage,maxHealth*2)
else
if(ischangeling(src))
if(IS_CHANGELING(src))
// if a changeling has no brain, they have no brain damage.
return 0
@@ -62,7 +62,7 @@
/mob/living/simple_animal/hostile/headslug/projectile_hit_check(obj/item/projectile/P)
return (stat || FALSE)
/obj/item/organ/internal/body_egg/changeling_egg
name = "changeling egg"
desc = "Twitching and disgusting."
@@ -95,7 +95,7 @@
if(origin && origin.current && (origin.current.stat == DEAD))
origin.transfer_to(M)
var/datum/antagonist/changeling/cling = M.mind.has_antag_datum(/datum/antagonist/changeling)
var/datum/antagonist/changeling/cling = IS_CHANGELING(M)
if(cling.can_absorb_dna(owner))
cling.absorb_dna(owner)