increase weight reducer of "previous_trials" logic for random attacks #61
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
Currently, we reduced the weight of the previously-ran attack through the
random
attack from2
->1
.#29 has more details, but as an example:
before
if the base weights for attacks were:
and we run the
random
attack -> it runsfinger-guns
, the weights/probabilities become:after
in this PR, we increase the base weights from
2
->3
and increase the weight reducer from1
->2
. this changes the previously-ran attack table to:TL;DR
we are making it so if an attack runs from the randomizer, we have an even smaller chance of running it again compared to previously
Test plan
tested in-game with the same test strategies found in #29
Reproducing in-game
from #29
Preview
N/A
its just adjusting random weights
Supplemental changes
N/A