Browse Source

random animation for weapon powers

combat-2
FatBoy-DOTC 8 months ago
parent
commit
a84c712110
  1. 4
      src/engine/gameManager/CombatManager.java

4
src/engine/gameManager/CombatManager.java

@ -481,12 +481,14 @@ public enum CombatManager {
if (token == 563721004) //kick animation if (token == 563721004) //kick animation
return 79; return 79;
if(mainHand && wb != null){ if(wb != null) {
if (mainHand) {
return wb.weapon_attack_anim_right.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_right.size()))[0]; return wb.weapon_attack_anim_right.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_right.size()))[0];
} else { } else {
return wb.weapon_attack_anim_left.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_left.size()))[0]; return wb.weapon_attack_anim_left.get(ThreadLocalRandom.current().nextInt(wb.weapon_attack_anim_left.size()))[0];
} }
} }
}
if (wb == null) if (wb == null)
return 75; return 75;

Loading…
Cancel
Save