Skip to content

Conversation

@Godlyh3ll
Copy link
Contributor

Achaea's recent update added a new battlerage skill (e.g., provoke) that now appears first in the skill list via GMCP. This breaks existing logic that expects skill positions to remain unchanged.
Changes:
Added sortProvokeBattlerage() to detect when provoke is the first skill and move it to the end of battlerageSkills.
Called sortProvokeBattlerage() after all class-specific sorting functions.
Rewrote knownBattlerageSkillList() to dynamically list all known battlerage skill names, future-proofing the output.
This avoids the need to change all index references and preserves compatibility with current battlerage strategies.

This update modifies the script to handle the recent Achaea update where all classes now have seven battlerage abilities instead of six. The original script assumed only six and failed to parse or use the abilities properly.
Summary of Changes:
Updated all index references to battlerageSkills (e.g. 1 → 2, 3 → 4, 4 → 5, etc.).
Adjusted rageRazeFunction, simple, and simplereverse battlerage strategies to reflect new skill positions.
Modified class-specific battlerage sorting functions (sortPariahBattlerage, etc.) to assign skills to the new correct indexes.
Rewrote knownBattlerageSkillList() to dynamically list all available battlerage skills instead of hardcoding 6.
This should restore correct battlerage execution and allow the system to scale if future battlerage abilities are added.
This update improves battlerage skill handling following the addition of a new skill (e.g., provoke) by Achaea. Instead of rewriting index logic, the update adjusts the skill ordering dynamically to preserve existing behavior.
Summary:
sortProvokeBattlerage() added
Detects if provoke is the first battlerage skill (as currently sent by Achaea) and moves it to the end of the skill list, maintaining expected indexing for existing battlerage strategies.
Called sortProvokeBattlerage() after all class-based sorters
Ensures skill order is corrected regardless of class.
Updated knownBattlerageSkillList() to use dynamic iteration
Now lists all known battlerage skills by name, regardless of total count, avoiding hardcoded index errors.
These changes preserve all original functionality while gracefully handling future battlerage expansions.
This update improves battlerage skill handling following the addition of a new skill (e.g., provoke) by Achaea. Instead of rewriting index logic, the update adjusts the skill ordering dynamically to preserve existing behavior.
Summary:
sortProvokeBattlerage() added
Detects if provoke is the first battlerage skill (as currently sent by Achaea) and moves it to the end of the skill list, maintaining expected indexing for existing battlerage strategies.
Called sortProvokeBattlerage() after all class-based sorters
Ensures skill order is corrected regardless of class.
Updated knownBattlerageSkillList() to use dynamic iteration
Now lists all known battlerage skills by name, regardless of total count, avoiding hardcoded index errors.
These changes preserve all original functionality while gracefully handling future battlerage expansions.
Added correct updated file
local variable for set battlerage skill value for easy changes if more are added later
Copy link
Member

@keneanung keneanung left a comment

Choose a reason for hiding this comment

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

thanks for the work and the patience!

Forgot Depthswalker change
@keneanung keneanung merged commit cbce7ed into AchaeaBashingScript:master Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants