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

Add warnings if skill cost exceeds avilable resource #5019

Merged
merged 13 commits into from
Dec 9, 2022

Conversation

Paliak
Copy link
Contributor

@Paliak Paliak commented Sep 2, 2022

Fixes #4998 .

Description of the problem being solved:

Currently there is no warning that a skill uses more life/mana/Es/Rage than is available. This pr also stops auras from not applying their effects even though reservation is applied even when above possible reservation.

Note that this pr makes triggered skills get cached. This may or may not cause issues with some calculations but i was not able to find any issues.

Steps taken to verify a working solution:

  • Check skill setups
  • Check divine blessing interaction
  • Check auras while having two essence worm rings applied the supreme ego allocated.

Before screenshot:

obraz

After screenshot:

obraz

@QuickStick123 QuickStick123 added the enhancement New feature, calculation, or mod label Sep 2, 2022
@QuickStick123
Copy link
Contributor

Text warning for life/energy shield now doesn't seem to appear. Everything else seems fine.

@Paliak
Copy link
Contributor Author

Paliak commented Sep 18, 2022

@QuickStick123 I assumed other costs would be in the top level of the cache table too but that was not the case. 946c47e should fix it. Thanks for the help.

@Paliak Paliak changed the title Add warnings for mana and life costs. Add warnings if skill cost exceeds avilable resource. Sep 18, 2022
Copy link
Contributor

@QuickStick123 QuickStick123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM the only remain issue is output.Rage doesn't exist in current dev.
This can be added here as well or can just wait until #5011 is merged. Up to you.

@Paliak
Copy link
Contributor Author

Paliak commented Sep 19, 2022

@QuickStick123 I made it default to 0 if output.Rage is nil so i think it's fine if it stays separate.

@LocalIdentity
Copy link
Contributor

This will need a couple fixes for conflicts generated by #5199 being merged

Copy link
Member

@Wires77 Wires77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Wires77 Wires77 merged commit 92afbf2 into PathOfBuildingCommunity:dev Dec 9, 2022
@Wires77 Wires77 changed the title Add warnings if skill cost exceeds avilable resource. Add warnings if skill cost exceeds avilable resource Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, calculation, or mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a warning when auras are disabled and disable if you cannot cast them.
4 participants