mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Clothing (as food for Moths) now only give temporary nourishment. (#67537)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
// sigh, ok, so it's not ACTUALLY infinite nutrition. this is so you can eat clothes more than...once.
|
||||
// bite_consumption limits how much you actually get, and the take_damage in after eat makes sure you can't abuse this.
|
||||
// ...maybe this was a mistake after all.
|
||||
food_reagents = list(/datum/reagent/consumable/nutriment = INFINITY)
|
||||
food_reagents = list(/datum/reagent/consumable/nutriment/cloth_fibers = INFINITY)
|
||||
tastes = list("dust" = 1, "lint" = 1)
|
||||
foodtypes = CLOTH
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
burn_heal = 1
|
||||
|
||||
/datum/reagent/consumable/nutriment/vitamin/on_mob_life(mob/living/carbon/M, delta_time, times_fired)
|
||||
if(M.satiety < 600)
|
||||
if(M.satiety < MAX_SATIETY)
|
||||
M.satiety += 30 * REM * delta_time
|
||||
. = ..()
|
||||
|
||||
@@ -136,6 +136,26 @@
|
||||
taste_description = "rich earthy pungent"
|
||||
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
|
||||
|
||||
/datum/reagent/consumable/nutriment/cloth_fibers
|
||||
name = "Cloth Fibers"
|
||||
description = "It's not actually a form of nutriment but it does keep Mothpeople going for a short while..."
|
||||
nutriment_factor = 30 * REAGENTS_METABOLISM
|
||||
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
|
||||
brute_heal = 0
|
||||
burn_heal = 0
|
||||
///Amount of satiety that will be drained when the cloth_fibers is fully metabolized
|
||||
var/delayed_satiety_drain = 2 * CLOTHING_NUTRITION_GAIN
|
||||
|
||||
/datum/reagent/consumable/nutriment/cloth_fibers/on_mob_life(mob/living/carbon/M, delta_time, times_fired)
|
||||
if(M.satiety < MAX_SATIETY)
|
||||
M.adjust_nutrition(CLOTHING_NUTRITION_GAIN)
|
||||
delayed_satiety_drain += CLOTHING_NUTRITION_GAIN
|
||||
return ..()
|
||||
|
||||
/datum/reagent/consumable/nutriment/cloth_fibers/on_mob_delete(mob/living/carbon/M)
|
||||
M.adjust_nutrition(-delayed_satiety_drain)
|
||||
return ..()
|
||||
|
||||
/datum/reagent/consumable/cooking_oil
|
||||
name = "Cooking Oil"
|
||||
description = "A variety of cooking oil derived from fat or plants. Used in food preparation and frying."
|
||||
|
||||
Reference in New Issue
Block a user