Releases: justastranger/TimeToLive
Time To Live 1.1.0
Add GMCM support
Add i18n translation keys
Time To Live 1.0.0
Ironed out the transpiler, it's finally done.
Every time forage or shells spawn, they'll get tagged with the number of days since starting. Each night, the list of objects on each map is ran through to check if the tagged number of days is old enough for removing. Hopefully tracks the amount of forage correctly, it should only decrement the variable if it removes the forage.
Alpha 0.0.1
This mod is comprised of two main components.
The first component is a patch that simply attaches a piece of custom modData to the Object of each piece of forage that spawns, marking down the day that it was spawned.
The second component is a patch to the forage despawn code that replaces it with code that checks how many days ago the forage spawned and only despawning it if it's been at least 7 (by default) days since the particular item of forage spawned. It also changes the code that tracks the number of Forage on the map on any given day. The original code was to remove everything and assign 0 to the counter, now the counter is decremented whenever the forage is actually despawned).
Forage lifespan is configurable. GMCM support coming soon.