feat(balance): cave entrances can spawn niter and other minerals, sanity-check gunpowder recipe #5371
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.
Checklist
Required
main
so it won't cause conflict when updatingmain
branch later.Optional
Purpose of change
Had an idea to make saltpeter less hassle to deal with, but along the way I started sanity-checking my math in #1268 and realized I completely bungled it such that the recipe was only like 50% saltpeter, when it wasn't that hard to calculate a ratio that's more accurate but not absurdly wasteful.
Describe the solution
cave_mineral
, mainly representing bat activity in conjuction with the below change but still potentially spawning some other loose minerals.cave_minerals
to favor niter 75% of the time, with some chances of spawning sulfur, rock salt, or iron ore. Limestone no longer present since it's already widely available from mining rocks or smashing boulders, and iron ore also kept more rare since it's easy to find in swamps.Describe alternatives you've considered
Putting mineral spawns in the underground sections instead, which tend to spawn their own things.
Testing
Additional context
Also on my radar for a later PR: CleverRaven/Cataclysm-DDA#55486