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 spell absorption capping #2680

Merged
merged 2 commits into from
Oct 5, 2024

Commits on Jul 30, 2024

  1. Fix spell absorption capping

    When absorbing magicka from own spells, DFU explicitly ensures that
    magicka recovered is not larger than the magicka that was used.
    For this, it needs to track how much magicka was spent for the last
    spell: lastReadySpellCastingCost
    
    A special case was not correctly handled though: when the last spell
    came from a magic item, lastReadySpellCastingCost should be set 0 so
    that next absorption of own spells is not capped.
    That worked by luck when the game was just started because
    lastReadySpellCastingCost was still 0, but broke after first spell
    casting.
    
    Forums: https://forums.dfworkshop.net/viewtopic.php?t=6755
    petchema committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    18ff4b0 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. "invert if" refacto

    petchema committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    5245714 View commit details
    Browse the repository at this point in the history