Workaround for missing ranged weapon reuse delays.
This commit is contained in:
@@ -143,7 +143,7 @@ public abstract class ItemTemplate extends ListenersContainer implements IIdenti
|
||||
private SkillHolder _unequipSkill = null;
|
||||
|
||||
private int _useSkillDisTime;
|
||||
private int _reuseDelay;
|
||||
protected int _reuseDelay;
|
||||
private int _sharedReuseGroup;
|
||||
|
||||
/**
|
||||
|
||||
@@ -195,6 +195,12 @@ public class Weapon extends ItemTemplate
|
||||
_isForceEquip = set.getBoolean("isForceEquip", false);
|
||||
_isAttackWeapon = set.getBoolean("isAttackWeapon", true);
|
||||
_useWeaponSkillsOnly = set.getBoolean("useWeaponSkillsOnly", false);
|
||||
|
||||
// Check if ranged weapon reuse delay is missing.
|
||||
if ((_reuseDelay == 0) && _type.isRanged())
|
||||
{
|
||||
_reuseDelay = 1500;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -68,4 +68,9 @@ public enum WeaponType implements ItemType
|
||||
{
|
||||
return _traitType;
|
||||
}
|
||||
|
||||
public boolean isRanged()
|
||||
{
|
||||
return (this == BOW);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user