CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.63k stars 4.18k forks source link

Allow setting age of comestibles and corpses #56958

Open NetSysFire opened 2 years ago

NetSysFire commented 2 years ago

Is your feature request related to a problem? Please describe.

When working on PRs I really missed an option to be able to do the above. Imagine spawning dumpsters behind houses or trashcans in buildings which contain mostly rotten food. Or placing corpses and deliberately let them spawn rotten for environmental story telling, so you know those beings were not killed 5 minutes ago.

Solution you would like.

Setting combestible age and being able to randomize said age for variety. In case of the corpses:

"place_corpses": [ { "group": "GROUP_EXAMPLE_CORPSES", "x": [ 10, 14 ], "y": [ 9, 13 ], "age": "rotten", "randomize_age": "10" } ],

Assuming the value of age can either be human-readable constants (e.g fresh, midlife(?), old, rotten, decaying) or also an exact number, assuming 0 is completely fresh and 100 (or something) is on the verge of rotting away. randomize_age would then increase the span of age by the given number, so if age is say 70 for stuff you find in the garbage and age_randomize is 10, the "freshest" combestible can be 60 and the oldest one 80.

Practical example for the dumpsters containing mostly rotten garbage is using two (or more) sets of the same item group, so say 80% of the items in the garbage are rotten (just append age: 80 to the item group or similar), a couple are just old and you might discover a rare fresh find.

Describe alternatives you have considered.

No response

Additional context

No response

GuardianDll commented 2 years ago

also filthy clothes would be good to have

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.