protected final int[] _phantom = new int[PAPERDOLL_MAX];
public void setPhantomEquippedItem(int slot, int id)
{
_phantom[slot] = id;
}
public int getPhantomEquippedItem(int slot)
{
return _phantom[slot];
}
public int getPaperdollItemId(int slot)
{
if (_phantom[slot] > 0)
return _phantom[slot];
ItemInstance item = getPaperdollItem(slot);
if (item != null)
return item.getId();
else if (slot == PAPERDOLL_HAIR)
{
item = _paperdoll[PAPERDOLL_DHAIR];
if (item != null)
return item.getId();
}
return 0;
}