mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
FBP Munchies
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
var/is_vampire = 0 //VOREStation Edit START
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(H.species.gets_food_nutrition == 0)
|
||||
if(H.species.organic_food_coeff == 0)
|
||||
H.adjust_nutrition(removed)
|
||||
is_vampire = 1 //VOREStation Edit END
|
||||
if(alien == IS_SLIME) // Treat it like nutriment for the jello, but not equivalent.
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
var/nutriment_factor = 30 // Per unit
|
||||
var/injectable = 0
|
||||
color = "#664330"
|
||||
affects_robots = 1 //VOREStation Edit
|
||||
|
||||
/datum/reagent/nutriment/mix_data(var/list/newdata, var/newamount)
|
||||
|
||||
@@ -37,10 +38,14 @@
|
||||
data -= taste
|
||||
|
||||
/datum/reagent/nutriment/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
|
||||
if(!injectable && alien != IS_SLIME && alien != IS_CHIMERA) //VOREStation Edit
|
||||
if(!injectable && alien != IS_SLIME && alien != IS_CHIMERA && !M.isSynthetic()) //VOREStation Edit
|
||||
M.adjustToxLoss(0.1 * removed)
|
||||
return
|
||||
affect_ingest(M, alien, removed)
|
||||
//VOREStation Edits Start
|
||||
if(M.isSynthetic() && M.nutrition < 500)
|
||||
M.adjust_nutrition((nutriment_factor * removed) * M.species.synthetic_food_coeff)
|
||||
//VOREStation Edits End
|
||||
|
||||
/datum/reagent/nutriment/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
|
||||
switch(alien)
|
||||
@@ -48,10 +53,11 @@
|
||||
if(IS_UNATHI) removed *= 0.5
|
||||
if(IS_CHIMERA) removed *= 0.25 //VOREStation Edit
|
||||
if(issmall(M)) removed *= 2 // Small bodymass, more effect from lower volume.
|
||||
M.heal_organ_damage(0.5 * removed, 0)
|
||||
if(M.species.gets_food_nutrition) //VOREStation edit. If this is set to 0, they don't get nutrition from food.
|
||||
M.adjust_nutrition(nutriment_factor * removed) // For hunger and fatness
|
||||
M.add_chemical_effect(CE_BLOODRESTORE, 4 * removed)
|
||||
//VOREStation Edits Start
|
||||
if(!M.isSynthetic())
|
||||
M.adjust_nutrition((nutriment_factor * removed) * M.species.organic_food_coeff)
|
||||
M.heal_organ_damage(0.5 * removed, 0)
|
||||
M.add_chemical_effect(CE_BLOODRESTORE, 4 * removed)
|
||||
|
||||
// Aurora Cooking Port Insertion Begin
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
/datum/reagent/ethanol/monstertamer/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
|
||||
..()
|
||||
|
||||
if(M.species.gets_food_nutrition) //it's still food!
|
||||
if(M.species.organic_food_coeff) //it's still food!
|
||||
switch(alien)
|
||||
if(IS_DIONA) //Diona don't get any nutrition from nutriment or protein.
|
||||
if(IS_SKRELL)
|
||||
@@ -151,7 +151,7 @@
|
||||
..()
|
||||
if(alien == IS_SKRELL)
|
||||
M.adjustToxLoss(removed) //Equivalent to half as much protein, since it's half protein.
|
||||
if(M.species.gets_food_nutrition)
|
||||
if(M.species.organic_food_coeff)
|
||||
if(alien == IS_SLIME || alien == IS_CHIMERA) //slimes and chimera can get nutrition from injected nutriment and protein
|
||||
M.adjust_nutrition(alt_nutriment_factor * removed)
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
/datum/reagent/ethanol/hairoftherat/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
|
||||
..()
|
||||
|
||||
if(M.species.gets_food_nutrition) //it's still food!
|
||||
if(M.species.organic_food_coeff) //it's still food!
|
||||
switch(alien)
|
||||
if(IS_DIONA) //Diona don't get any nutrition from nutriment or protein.
|
||||
if(IS_SKRELL)
|
||||
@@ -455,6 +455,6 @@
|
||||
..()
|
||||
if(alien == IS_SKRELL)
|
||||
M.adjustToxLoss(removed) //Equivalent to half as much protein, since it's half protein.
|
||||
if(M.species.gets_food_nutrition)
|
||||
if(M.species.organic_food_coeff)
|
||||
if(alien == IS_SLIME || alien == IS_CHIMERA) //slimes and chimera can get nutrition from injected nutriment and protein
|
||||
M.nutrition += (alt_nutriment_factor * removed)
|
||||
M.nutrition += (alt_nutriment_factor * removed)
|
||||
Reference in New Issue
Block a user