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

Combat/Core: Damage Calculator & Combat Log support #324

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kirmmin
Copy link
Member

@kirmmin kirmmin commented Oct 9, 2020

Completes #309

I was unsure how best way to implement this in a way that was reviewable, so I settled for a separate Manager, essentially, that would be able to do the calculations and spit out the damage (as a first stab). I recognise that this does not cover every potential damage or combat calculation, but this gives a base to work with.

Some notes:

  • A lot of these calculations are assumed. I haven't dug deep, so I relied on what the stat tooltips said and what information I could find on the Internet.
  • I added some randomisation to the damage, but I'm unsure how this is done in other emulators. There may be a better way to randomise the damage within a range.

Definitely open to hearing feedback on the stat weights, diminishing returns, damage ranges, etc.

kirmmin added a commit to kirmmin/NexusForever that referenced this pull request Oct 12, 2020
Base damage methods added to DamageCalculator
CombatResult calculations added

Armor mitigation calculations

CombatLogs support

Use Any() instead of Count()

Fix DamageCalc following merge
Base damage methods added to DamageCalculator
CombatResult calculations added

Armor mitigation calculations

CombatLogs support

Use Any() instead of Count()

Fix - Combat/DamageCalculator: Mitigation calc
kirmmin added a commit to kirmmin/NexusForever that referenced this pull request Mar 26, 2021
Base damage methods added to DamageCalculator
CombatResult calculations added

Armor mitigation calculations

CombatLogs support

Use Any() instead of Count()

Fix DamageCalc following merge
@Rawaho Rawaho added this to the Pull Request Cleanup milestone Jan 16, 2023
@Rawaho Rawaho self-assigned this Jun 4, 2024
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