Merged in M4SS/holocore/weapon-equip (pull request #224)

Added support for equipping/unequipping weapons
This commit is contained in:
Obique PSWG
2016-05-18 15:41:36 -05:00
3 changed files with 48 additions and 0 deletions
@@ -90,6 +90,7 @@ public class CreatureObject extends TangibleObject {
private String moodAnimation = "neutral";
private String animation = "";
private WeaponObject equippedWeapon = null;
private WeaponObject defaultWeapon = null;
private byte moodId = 0;
private long lookAtTargetId = 0;
private long intendedTargetId = 0;
@@ -515,6 +516,14 @@ public class CreatureObject extends TangibleObject {
sendDelta(6, 12, weapon.getObjectId());
}
public WeaponObject getDefaultWeapon() {
return defaultWeapon;
}
public void setDefaultWeapon(WeaponObject defaultWeapon) {
this.defaultWeapon = defaultWeapon;
}
public byte getMoodId() {
return moodId;
}