Food price scales with freshness #77960
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Balance "Food price scales with freshness"
Purpose of change
I can sell my dirty stinky about-to-be-rotten cheeseburger for the same price as a deliciously fresh one, right from the kitchen. That doesn't seem right.
Describe the solution
Scale price with rot, linearly
1% of rot time left = It's worth 1% of the normal price
99% of rot time left = It's worth 99% of the normal price
Describe alternatives you've considered
NPCs only buy food you cook on demand, right in front of them? This isn't teppanyaki!!
Some sort of scaling other than linear. Linear is easy and fair enough, though.
Testing
Sale price for a chunk of raw meat is $0.44. Wait an hour, sale price is now $0.41.
2024-11-17.19-55-44.mp4
Additional context
Note that pricing is a two-way street. They're worth less buying and selling, though for many players I imagine this will only impact their selling habits.
@Karol1223 I AM RUINING THE ECONOMY (just thought you'd like to know)