Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecalculateStatsAPI: Shield Documentation Fix + New Crit Damage Modifier #346

Merged
merged 4 commits into from Mar 5, 2022

Conversation

yekoc
Copy link
Contributor

@yekoc yekoc commented Mar 5, 2022

Adds a crit damage modifier to RecalculateStatsAPI,since the newest update moved the relevant values from OnHit to the Body.
Also includes a quick fix to the documentation/summary comments on the shield modifiers, since they previously lacked a correct formula which has caused at least one case of someone misidentifying what shieldMultAdd does, my bad for missing that one last time.

The summary comments on shield modifiers were not taking into account
shieldMultAdd due to previous forgetfulness both shield modifiers now
mention the correct formula.
StatHookEventArgs now includes critDamageAdd which is directly added to
the damage multiplier for a character's critical hits.
R2API/RecalculateStatsAPI.cs Outdated Show resolved Hide resolved
R2API/RecalculateStatsAPI.cs Show resolved Hide resolved
Renamed critDamageAdd to critDamageMultAdd to be more descriptive.
Removed extraneous IL match.
@tristanmcpherson tristanmcpherson merged commit 43918b8 into risk-of-thunder:master Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants