Equipment changes, see extended

Fixed an issue where attributes weren't being removed when unequipping
items.

EquipmentList and ApperaranceList are currently broken and will cause
crashes when modified, thus when equipping an item in any way will cause
a crash.  Expect a fix for that from Treeku shortly.
This commit is contained in:
R. Uvanni
2014-08-24 22:57:13 -04:00
parent a2f1eabcbf
commit 538bb789d2
5 changed files with 19 additions and 31 deletions
@@ -931,6 +931,15 @@ public class CreatureObject extends TangibleObject implements IPersistent {
}
}
public boolean isWearing(SWGObject object)
{
for (Equipment equipment : getEquipmentList())
{
if (equipment.getObjectId() == object.getObjectId()) return true;
}
return false;
}
public void removeObjectFromEquipList(SWGObject object) {
if (object instanceof TangibleObject) {
for (Equipment equipment : getEquipmentList()) {