mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-05 20:12:51 -04:00
Fixed some merge issues with creature refactor.
This commit is contained in:
@@ -1384,6 +1384,20 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
return adder.intValue();
|
||||
}
|
||||
|
||||
public CreatureObject getCalledPet() {
|
||||
if (getPlayerObject() == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (CreatureObject) NGECore.getInstance().objectService.getObject(getPlayerObject().getPet());
|
||||
}
|
||||
|
||||
public void setCalledPet(CreatureObject calledPet) {
|
||||
if (getPlayerObject() != null) {
|
||||
getPlayerObject().setPet((calledPet == null) ? 0L : calledPet.getObjectID());
|
||||
}
|
||||
}
|
||||
|
||||
public void sendSystemMessage(String message, byte displayType) {
|
||||
sendSystemMessage(message, new OutOfBand(), displayType);
|
||||
}
|
||||
@@ -1454,11 +1468,6 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
}
|
||||
}
|
||||
|
||||
// PetId can be got from PlayerObject. Also is a duplicate of getCompanion().
|
||||
@Deprecated public CreatureObject getCalledPet() { return ((getPlayerObject() == null) ? null : (CreatureObject) NGECore.getInstance().objectService.getObject(getPlayerObject().getPet())); }
|
||||
|
||||
@Deprecated public void setCalledPet(CreatureObject calledPet) { }
|
||||
|
||||
@Deprecated public void playMusicSelf(String sndFile, long targetId, int repetitions, boolean flag) { playMusic(sndFile, targetId, repetitions, flag); }
|
||||
|
||||
@Deprecated public void setXpBarValue(int xpBarValue) { setDisplayXp(xpBarValue); }
|
||||
|
||||
Reference in New Issue
Block a user