structure.json: Add support for new "baseStructDamageExpLevel" option, revert MP structure update #3927
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.
Basically, this makes #3361 configurable from the
structure.json
file.The default
"baseStructDamageExpLevel"
is1
, and functions as all versions of WZ from 2.0.10-4.4.2 have. With this configuration, structures get the benefit of a hidden experience level damage reduction. (i.e. They get treated as experience level 1, not 0, and the initial calculation before armor is 94% of the base damage value, not 100%.)To opt-in to explicitly specifying a base experience level for structure damage calculations, add a new
"_config_"
dict to the top-level structure.json object, specifying the desired"baseStructDamageExpLevel"
.Example:
Would eliminate this default hidden experience level damage reduction for structures.
As it's now possible to configure this from the
structure.json
, we can now revert the "Structure Update for MP" commit for the 4.5.0 release and just use the prior values with the prior behavior. (Until such time as people find a combination of changes they like.)