mob_biotypes are now flags instead of lists

This commit is contained in:
DragonTrance
2021-03-03 11:08:36 -07:00
parent 08e55a3f4f
commit 4b931c5e92
101 changed files with 133 additions and 138 deletions
@@ -792,7 +792,7 @@
..()
if(!istype(H))
return
if(!H.dna || !H.dna.species || !(MOB_ORGANIC in H.mob_biotypes))
if(!H.dna || !H.dna.species || !(MOB_ORGANIC & H.mob_biotypes))
return
if(isjellyperson(H))
@@ -244,7 +244,7 @@
/datum/reagent/toxin/pestkiller/reaction_mob(mob/living/M, method=TOUCH, reac_volume)
..()
if(MOB_BUG in M.mob_biotypes)
if((MOB_BUG & M.mob_biotypes))
var/damage = min(round(0.4*reac_volume, 0.1),10)
M.adjustToxLoss(damage)