Demo reel build
This commit is contained in:
@@ -105,7 +105,11 @@ public partial class Inventory : Node, IInventory
|
||||
public void Unequip(IEquipable equipable)
|
||||
{
|
||||
if (equipable is Weapon weapon)
|
||||
{
|
||||
_equippedWeapon.OnNext(new Weapon());
|
||||
if (weapon.WeaponStats.WeaponTags.Contains(WeaponTag.BreaksOnChange))
|
||||
Items.Remove(weapon);
|
||||
}
|
||||
else if (equipable is Armor armor)
|
||||
_equippedArmor.OnNext(new Armor());
|
||||
else if (equipable is Accessory accessory)
|
||||
|
||||
Reference in New Issue
Block a user