mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Converts gas, ore, plants and reagent strings to defines (#9611)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d5b62d4159
commit
fd5d9267ff
@@ -716,16 +716,16 @@
|
||||
/mob/living/proc/calculate_composition() // moved from devour.dm on aurora's side
|
||||
if (!composition_reagent)//if no reagent has been set, then we'll set one
|
||||
if (isSynthetic())
|
||||
src.composition_reagent = "iron"
|
||||
src.composition_reagent = REAGENT_ID_IRON
|
||||
else
|
||||
if(istype(src, /mob/living/carbon/human/diona) || istype(src, /mob/living/carbon/alien/diona))
|
||||
src.composition_reagent = "nutriment" // diona are plants, not meat
|
||||
src.composition_reagent = REAGENT_ID_NUTRIMENT // diona are plants, not meat
|
||||
else
|
||||
src.composition_reagent = "protein"
|
||||
src.composition_reagent = REAGENT_ID_PROTEIN
|
||||
if(istype(src, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = src
|
||||
if(istype(H.species, /datum/species/diona))
|
||||
src.composition_reagent = "nutriment"
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user