Demo reel build

This commit is contained in:
2024-09-17 23:56:50 -07:00
parent 27fa657f92
commit b7a982d340
75 changed files with 4531 additions and 220 deletions

View File

@@ -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)