[CR] Added a message notifying player about why he can't mine terrain/furniture with bash resistance above maximum mining ability for a pickaxe/jackhammer #55346
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
Interface "Added a message notifying player about why he can't mine terrain/furniture with bash resistance above maximum mining ability for a pickaxe/jackhammer."
Purpose of change
Describe the solution
Added a message notifying player about why he can't mine terrain/furniture with bash resistance above maximum mining ability for a pickaxe/jackhammer.
I took a value of 70 for maximum mining ability, as it's
str_min
for bashing aconcrete wall
. The value could be increased or decreased if it feels too high or low.Describe alternatives you've considered
Make maximum mining ability for jackhammer a bit higher than for pickaxe. But I'm not sure if it makes sense.
Testing
Activated pickaxe, selected resin wall. Got usual
You can't mine there.
message and also newThe material is so hard that you hardly can make even a dent.
Additional context
While skimming through various types of terrain in order to find a good candidate for a maximum mining ability, I noticed that we have
reinforced concrete wall
with astr_min
value of 120. And despite its own description stating thatonly serious explosives and high-speed impacts would be capable of damaging this wall.
, it's still easily mineable by a ordinary pickaxe (i.e. hasMINEABLE
flag), which obviously isn't a serious explosive nor it's capable of making really high-speed impacts. Should I increase maximum mining ability to 120? Or should we remove possibility of mining reinforced concrete wall with a pickaxe?Also I'm not sure why
simple concrete wall
has better bash protection than ordinaryconcrete wall
(90 versus 70).