Skip to content

Fix Skill Costs#5009

Merged
LocalIdentity merged 1 commit intoPathOfBuildingCommunity:devfrom
QuickStick123:mana
Dec 8, 2022
Merged

Fix Skill Costs#5009
LocalIdentity merged 1 commit intoPathOfBuildingCommunity:devfrom
QuickStick123:mana

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