mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-15 05:13:08 -04:00
Fixed an issue where ranged weapons weren't shooting
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user