Dark bow and crystal bow now have 10 square range (authenticity fix)

This commit is contained in:
Avi Weinstock
2022-02-26 06:47:20 +00:00
committed by Ryan
parent e754803f5a
commit 2177b3c47b
@@ -58,6 +58,13 @@ open class RangeSwingHandler
if (entity.properties.attackStyle.style == WeaponInterface.STYLE_LONG_RANGE) {
distance += 2
}
if (entity is Player) {
val rw = RangeWeapon.get(entity.getEquipment().getNew(EquipmentContainer.SLOT_WEAPON).getId());
if(rw.weaponType == WeaponType.DOUBLE_SHOT || rw.weaponType == WeaponType.DEGRADING) {
// Dark bow and crystal bow have a 10-square range, independent of whether longrange stance is used
distance = 10
}
}
var goodRange = victim.centerLocation.withinDistance(entity.centerLocation, getCombatDistance(entity, victim, distance))
var type = InteractionType.STILL_INTERACT
if (victim.walkingQueue.isMoving && !goodRange) {