public bool Unequip(Item item) { if (!EquippedItems.Contains(item)) { return(false); } EquippedItems.Remove(item); FreeHands += item.Hands; RefreshModifiers(); return(true); }
private void Inventory_WearingItemsChanged(object?sender, ItemEventArgs eventArgs) { var item = eventArgs.Item; if (!item.HasSkill || item.Definition?.Skill is null) { return; } var inventory = this.player.Inventory; if (inventory !.EquippedItems.Contains(item)) { this.AddItemSkill(item.Definition.Skill); }