Page 1 of 1
percent_spoiled in ItemProductPrototype should allow values so that decay time left increases
Posted: Tue Feb 04, 2025 5:28 pm
by protocol_1903
As stated in title. I would like to be able to create recipes that increase the decay time left on an item instead of just setting it to a specific percentage. It currently operates by setting it to some spoilage percent of the current value, if nonzero then meaning it is decayed more than it was. Specifically, I want an items decay_time to increase by 10% whenever the recipe is completed. There's currently no way to define a result with more time left. I propose that values < 0 increase the spoilage time above the items current value. If this change is introduced, it would open the possibility to items with spoilage time > 100%. If that's undesirable, then just clamp the output item to 100% when it's created. No need to force that onto the recipe.
Re: percent_spoiled in ItemProductPrototype should allow values so that decay time left increases
Posted: Tue Feb 04, 2025 7:11 pm
by Muche
I don't think inverting values makes sense (neither from backward compatibility view nor from the property meaning itself (10% spoiled is 90% fresh after all, and the property name is percent_spoiled)).
Extending accepted values to negatives with the meaning of (relatively) extending decay time does make sense though.
Re: percent_spoiled in ItemProductPrototype should allow values so that decay time left increases
Posted: Tue Feb 04, 2025 7:46 pm
by protocol_1903
Same difference, I generally think of things as x% fresh instead of x% spoiled. Its also how the spoilage bar is rendered. However it's resolved, my request is extending decay time through recipes, how it's done doesn't really matter.
Re: percent_spoiled in ItemProductPrototype should allow values so that decay time left increases
Posted: Tue Feb 04, 2025 9:06 pm
by curiosity
protocol_1903 wrote: Tue Feb 04, 2025 7:46 pm
However it's resolved, my request is extending decay time through recipes, how it's done doesn't really matter.
Then you should have worded it better, because right now it looks like it does.
Re: percent_spoiled in ItemProductPrototype should allow values so that decay time left increases
Posted: Tue Feb 04, 2025 9:29 pm
by protocol_1903
curiosity wrote: Tue Feb 04, 2025 9:06 pm
protocol_1903 wrote: Tue Feb 04, 2025 7:46 pm
However it's resolved, my request is extending decay time through recipes, how it's done doesn't really matter.
Then you should have worded it better, because right now it looks like it does.
That better?