Example #1
0
func (p *Player) IsEquippedItem(item gameObjectsBase.Itemer) bool {
	return (item.GetID() == p.fist.GetID() && (p.slots[consts.SLOT_LEFT_HAND].item == nil || p.slots[consts.SLOT_RIGHT_HAND].item == nil)) || item.IsEquipped()
}