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

Fix Skill Costs #5009

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Conversation

QuickStick123
Copy link
Contributor

@QuickStick123 QuickStick123 commented Aug 30, 2022

Fixes #5007.

Description of the problem being solved:

Mana cost was applying to mana and divine blessing wasn't handled correctly with blood magic or life as extra cost of mana

There are some really weird rounding issues. That I don't know how to fix so these calculations are often off by one when gem mana multipliers are in play.

Lifetap / Petrified Blood Implemenation could be converted to be more generic as if in the future we saw mana to es conversion or similar.

Steps taken to verify a working solution:

  • Total cost only applies for the resource with no conversions
  • % cost correctly still doesn't apply for bloodmagic divine blessing
  • flat aura and extra mana cost behave correctly
  • Blood magic still overrides life as extra cost of mana.

https://pastebin.com/tft9bXja

Petrified Blood
image
image
image

Blood Magic
image
image
image

@QuickStick123 QuickStick123 added the bug: calculation Numerical differences label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: calculation Numerical differences
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replica Conq. Efficiency Vs Lifetap
2 participants