Use previous attack speed delay for ranged weapons.
This commit is contained in:
parent
3d9011a87d
commit
7b6e57b1aa
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
@ -1092,9 +1092,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
case BOW:
|
case BOW:
|
||||||
{
|
{
|
||||||
// Old method.
|
// Old method.
|
||||||
// final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
final int reuse = Formulas.calculateReuseTime(this, weaponItem);
|
||||||
// Try to do what is expected by having more attack speed.
|
// Try to do what is expected by having more attack speed.
|
||||||
final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
// final int reuse = (int) (Formulas.calculateReuseTime(this, weaponItem) / (Math.max(1, _stat.getAttackSpeedMultiplier() - 1)));
|
||||||
|
|
||||||
// Consume arrows
|
// Consume arrows
|
||||||
final Inventory inventory = getInventory();
|
final Inventory inventory = getInventory();
|
||||||
|
Loading…
Reference in New Issue
Block a user