mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Merge branch 'master' into awareness
Conflicts: src/services/objects/ObjectManager.java
This commit is contained in:
@@ -8,7 +8,10 @@ import resources.Race;
|
||||
import resources.collections.SWGList;
|
||||
import resources.encodables.player.Equipment;
|
||||
import resources.network.BaselineBuilder;
|
||||
import resources.objects.SWGObject;
|
||||
import resources.objects.player.PlayerObject;
|
||||
import resources.objects.tangible.TangibleObject;
|
||||
import resources.objects.weapon.WeaponObject;
|
||||
import resources.player.Player;
|
||||
import utilities.Encoder.StringType;
|
||||
|
||||
@@ -56,6 +59,17 @@ public class CreatureObject extends TangibleObject {
|
||||
super(objectId);
|
||||
}
|
||||
|
||||
public void addEquipment(SWGObject obj) {
|
||||
if (obj instanceof WeaponObject)
|
||||
equipmentList.add(new Equipment((WeaponObject) obj));
|
||||
else
|
||||
equipmentList.add(new Equipment(obj.getObjectId(), obj.getTemplate()));
|
||||
}
|
||||
|
||||
public void addAppearanceItem(SWGObject obj) {
|
||||
appearanceList.add(new Equipment(obj.getObjectId(), obj.getTemplate()));
|
||||
}
|
||||
|
||||
public SWGList<Equipment> getEquipmentList() {
|
||||
return equipmentList;
|
||||
}
|
||||
@@ -184,6 +198,10 @@ public class CreatureObject extends TangibleObject {
|
||||
return difficulty;
|
||||
}
|
||||
|
||||
public PlayerObject getPlayerObject() {
|
||||
return (PlayerObject) (hasSlot("ghost") ? getSlottedObject("ghost") : null);
|
||||
}
|
||||
|
||||
public boolean isBeast() {
|
||||
return beast;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user