Skip to content

Added support for revoking permanently granted abilities. - #61

Merged
lextatic merged 8 commits into
mainfrom
feature/remove-abilities
Aug 10, 2026
Merged

Added support for revoking permanently granted abilities.#61
lextatic merged 8 commits into
mainfrom
feature/remove-abilities

Conversation

@lextatic

Copy link
Copy Markdown
Contributor

Added

  • Added RevokeAbility and ClearAbility methods.
  • Added TryRevokeAbility node.

Fixed

  • Fixed inconsistencies in remaining cooldown calculation

Changed

  • Removed background from icon.svg.

@lextatic lextatic added the added New features label Aug 10, 2026
@lextatic
lextatic requested a balanced review from Copilot August 10, 2026 02:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds explicit ability revocation and clearing APIs, Statescript integration, cooldown continuity, tests, and documentation.

Changes:

  • Adds RevokeAbility, ClearAbility, and TryRevokeAbilityNode.
  • Preserves cooldown reporting across revoke/re-grant cycles.
  • Updates tests, documentation, and icon transparency.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
icon.svg Removes embedded background.
Forge/Statescript/Nodes/Condition/TryRevokeAbilityNode.cs Adds revocation condition node.
Forge/Statescript/Nodes/Condition/AbilityRevokeScope.cs Defines revocation scopes.
Forge/Statescript/Nodes/Action/GrantAbilityPermanentlyNode.cs Updates revocation guidance.
Forge/Statescript/Nodes/AbilityNodeUtilities.cs Resolves single or array handles.
Forge/Effects/EffectsManager.cs Finds active effects by data.
Forge/Core/EntityAbilities.cs Implements revocation and clearing.
Forge/Abilities/Ability.cs Improves cooldown lookup.
Forge.Tests/Statescript/Nodes/Condition/TryRevokeAbilityNodeTests.cs Tests the new node.
Forge.Tests/Abilities/EntityAbilitiesEventsTests.cs Tests lifecycle events.
Forge.Tests/Abilities/AbilitiesTests.cs Tests removal and cooldown behavior.
docs/statescript/nodes/condition/try-revoke-ability-node.md Documents the node.
docs/statescript/nodes/condition/README.md Lists the node.
docs/statescript/nodes/action/README.md Updates permanent-grant description.
docs/statescript/nodes/action/grant-ability-permanently-node.md Documents revocation.
docs/statescript/nodes/action/cancel-ability-node.md Distinguishes cancellation from revocation.
docs/statescript/nodes/action/cancel-abilities-node.md Distinguishes cancellation from revocation.
docs/abilities.md Documents revocation and clearing APIs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Forge/Core/EntityAbilities.cs Outdated
Comment thread Forge/Core/EntityAbilities.cs
Comment thread Forge/Statescript/Nodes/Condition/TryRevokeAbilityNode.cs Outdated
Comment thread docs/statescript/nodes/condition/try-revoke-ability-node.md Outdated
Comment thread docs/abilities.md Outdated
@lextatic
lextatic merged commit 3047b57 into main Aug 10, 2026
1 check passed
@lextatic
lextatic deleted the feature/remove-abilities branch August 10, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants