Mystery item implementation

This commit is contained in:
2025-03-26 23:13:01 -07:00
parent 114ff35630
commit 9d3621dd2c
58 changed files with 860 additions and 309 deletions

View File

@@ -6,8 +6,6 @@ namespace Zennysoft.Ma.Adapter;
[Meta, Id("equipable_item")]
public abstract partial class EquipableItem : InventoryItem
{
public abstract ItemTag ItemTag { get; }
[Save("equipable_item_is_equipped")]
public bool IsEquipped { get; set; }
}

View File

@@ -6,6 +6,8 @@ public interface IInventory
public bool TryAdd(InventoryItem inventoryItem);
public bool TryInsert(InventoryItem inventoryItem, int index);
public void Remove(InventoryItem inventoryItem);
public void Sort();

View File

@@ -19,6 +19,8 @@ public abstract partial class InventoryItem : Node3D
public abstract double ThrowDamage { get; }
[Save("inventory_item_throw_speed")]
public abstract float ThrowSpeed { get; }
[Save("inventory_item_tag")]
public abstract ItemTag ItemTag { get; }
public abstract Texture2D GetTexture();
}

View File

@@ -3,5 +3,6 @@
public enum ItemTag
{
None,
BreaksOnChange
BreaksOnChange,
MysteryItem
}