mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-21 11:03:13 -04:00
Merged in M4SS/holocore/weapon-equip (pull request #224)
Added support for equipping/unequipping weapons
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user