Skip to content

Commit

Permalink
attack styles: special case keris attack styles
Browse files Browse the repository at this point in the history
Partisan is missing from the attack styles enum
  • Loading branch information
Adam- committed Jun 5, 2024
1 parent 240b74c commit 2a01fdb
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ private AttackStyle[] getWeaponTypeStyles(int weaponType)
{
// from script4525
int weaponStyleEnum = client.getEnum(EnumID.WEAPON_STYLES).getIntValue(weaponType);
if (weaponStyleEnum == -1)
{
if (weaponType == 30)
{
// Partisan
return new AttackStyle[]{
AttackStyle.ACCURATE, AttackStyle.AGGRESSIVE, AttackStyle.AGGRESSIVE, DEFENSIVE
};
}
return new AttackStyle[0];
}
int[] weaponStyleStructs = client.getEnum(weaponStyleEnum).getIntVals();

AttackStyle[] styles = new AttackStyle[weaponStyleStructs.length];
Expand Down

0 comments on commit 2a01fdb

Please sign in to comment.