Page 1 of 1

Add ingredient_is_always_fresh to ItemIngredientPrototype

Posted: Wed May 06, 2026 8:10 pm
by Thremtopod
As a sort-of followup to this request, it would be great to have the ability to exclude an ingredient from a recipe result's freshness. The motivation is to have a recipe with both a spoilable catalyst ingredient and a regular spoilable ingredient; the catalyst can't currently be returned "unchanged" because it'll inherit its spoiled amount from both ingredients. The ability to ignore an ingredient's freshness would make this possible.

I do see that there's a potential scope-creep risk. When dealing with multiple spoilable ingredients and products, there's a possible temptation to want to have arbitrary control over how they interact with each other, which sounds like a nightmare. Hopefully this request is simple enough not to invite that. Spoiling is just too interesting a mechanic!

Re: Add ingredient_is_always_fresh to ItemIngredientPrototype

Posted: Thu May 07, 2026 7:44 am
by boskid
To not scope creep to much, for 2.1 i added ItemIngredientPrototype::spoil_weight which takes a value in range [0, 1]. If you set this value to 0, given ingredient will not contribute to the spoil percent of the products.

Re: Add ingredient_is_always_fresh to ItemIngredientPrototype

Posted: Thu May 07, 2026 12:00 pm
by Thremtopod
Thank you, this is great!!