From a68e679ebb845e9e468d225ac179b10aec681434 Mon Sep 17 00:00:00 2001 From: Treeku Date: Mon, 25 Nov 2013 19:44:24 +0000 Subject: [PATCH] Weapon Objects now have "Volume: 1" attribute --- src/resources/objects/weapon/WeaponObject.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resources/objects/weapon/WeaponObject.java b/src/resources/objects/weapon/WeaponObject.java index 9f0b8381..368ebb18 100644 --- a/src/resources/objects/weapon/WeaponObject.java +++ b/src/resources/objects/weapon/WeaponObject.java @@ -54,6 +54,7 @@ public class WeaponObject extends SWGObject { public WeaponObject(long objectID, Planet planet, String template) { super(objectID, planet, new Point3D(0, 0, 0), new Quaternion(1, 0, 1, 0), template); messageBuilder = new WeaponMessageBuilder(this); + if (this.getClass().getSimpleName().equals("WeaponObject")) setIntAttribute("volume", 1); calculateRange(); calculateAttackSpeed(); } @@ -61,6 +62,7 @@ public class WeaponObject extends SWGObject { public WeaponObject(long objectID, Planet planet, String template, Point3D position, Quaternion orientation) { super(objectID, planet, position, orientation, template); messageBuilder = new WeaponMessageBuilder(this); + if (this.getClass().getSimpleName().equals("WeaponObject")) setIntAttribute("volume", 1); calculateRange(); calculateAttackSpeed(); }