Fixed an issue where ranged weapons weren't shooting

This commit is contained in:
Mads Boddum
2016-10-12 14:25:12 +02:00
parent 709db360e1
commit be4eff77a1
+3 -1
View File
@@ -576,13 +576,15 @@ public final class StaticItemService extends Service {
object.addAttribute("cat_wpn_other.wpn_range", rangeString);
// Ziggy: Special Action Cost would go under cat_wpn_other as well, but it's a pre-NGE artifact.
// TODO set all WeaponObject properties
WeaponObject weapon = (WeaponObject) object;
weapon.setType(category);
weapon.setAttackSpeed(attackSpeed);
weapon.setMinRange(minRange);
weapon.setMaxRange(maxRange);
weapon.setDamageType(damageTypeEnum);
weapon.setElementalType(elementalTypeEnum);
weapon.setMinDamage(minDamage);
weapon.setMaxDamage(maxDamage);
}
}