mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-06 21:12:59 -04:00
Added isWearingAppearance() check.
This commit is contained in:
@@ -927,12 +927,13 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isWearing(SWGObject object)
|
||||
{
|
||||
for (Equipment equipment : getEquipmentList())
|
||||
{
|
||||
if (equipment.getObjectId() == object.getObjectId()) return true;
|
||||
public boolean isWearing(SWGObject object) {
|
||||
for (Equipment equipment : getEquipmentList()) {
|
||||
if (equipment.getObjectId() == object.getObjectId()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1158,6 +1159,16 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isWearingAppearance(SWGObject object) {
|
||||
for (Equipment equipment : getAppearanceEquipmentList()) {
|
||||
if (equipment.getObjectId() == object.getObjectId()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void removeObjectFromAppearanceEquipList(SWGObject object) {
|
||||
if (object instanceof TangibleObject) {
|
||||
for (Equipment equipment : getAppearanceEquipmentList()) {
|
||||
|
||||
Reference in New Issue
Block a user