Prompt before oxytorch activity if you don't have enough gas #78432
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
Features "Prompt before oxytorch activity if you don't have enough gas"
Purpose of change
With the addition of tiny acetylene tanks, having insufficient gas to torch things is far more prevalent. Since you need 112 charges to cut through a metal door and the new tanks hold 100, the player can easily waste 96 charges (8 gas per second until it runs out) if they attempt to torch a door with a full tiny tank.
Describe the solution
Check if the player has enough acetylene before starting the activity and prompt them if they want to start if it's not possible to finish with the current tank.
Describe alternatives you've considered
oxy_torch
USES_NEARBY_AMMO
so that multiple tiny tanks can do the job. This would still waste gas when there isn't enough and would also change up welding crafting to be able to squeeze every drop out of each tank.Testing
Prompt appears
Can reload and resume
Additional context
Gas requirements in the
oxy_torch
Capacity of
tinyweldtank