Stable explosives infrastructure #37838
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
SUMMARY: Infrastructure "Adds stable_explosive requirement and fixes some recipes"
Purpose of change
Explosives crafting still needed more infrastructure to let people add more recipes later in a scalable way. this adds the stable_explosives requirement for explosives that don't detonate easily, with them being 10g tnt equivalent each again.
I also discovered use of ammonium nitrate was a mess because of weird unit sizes, i standardized to 1g in this case for ease of use in explosive recipes specifically, since that will be the main usecase of the item.
Describe the solution
Adds stable_explosive requirement with suitable ingredients.
Add HMTD to volatile_explosive requirement. (overlooked possibility in last PR)
Standardize ammonium nitrate to 1g units and adjust all relevant recipes.
Standardize ANFO to 1g units and adjust relevant recipes.
Add ammonium nitrate pellets.
Allow converting of commercial fertilizer into ammonium nitrate pellets ( using the fertilizer directly would require changing fertilization code )
Allow grinding of ammonium nitrate pellets into powder.
Convert the fertilizer bomb to use new stable_explosive standard.
Describe alternatives you've considered
Rework use of fertilizer to allow use of commercial fertilizer in 1g portions in recipes directly (probably outside my skillset)
Testing
Game loads and all recipes work.