mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] some istype to macros (#9802)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
73486c399b
commit
ed79946ade
@@ -728,13 +728,13 @@
|
||||
src.composition_reagent = REAGENT_ID_NUTRIMENT // diona are plants, not meat
|
||||
else
|
||||
src.composition_reagent = REAGENT_ID_PROTEIN
|
||||
if(istype(src, /mob/living/carbon/human))
|
||||
if(ishuman(src))
|
||||
var/mob/living/carbon/human/H = src
|
||||
if(istype(H.species, /datum/species/diona))
|
||||
src.composition_reagent = REAGENT_ID_NUTRIMENT
|
||||
|
||||
//if the mob is a simple animal - MOB NOT ANIMAL - with a defined meat quantity
|
||||
if (istype(src, /mob/living/simple_mob))
|
||||
if (isanimal(src))
|
||||
var/mob/living/simple_mob/SA = src
|
||||
if(SA.meat_amount)
|
||||
src.composition_reagent_quantity = SA.meat_amount*2*9
|
||||
|
||||
Reference in New Issue
Block a user