Add Inventory system with Inventory, InventorySlot, and StatModifierItem classes; update character attributes to include level and experience

This commit is contained in:
2025-07-11 23:57:57 +02:00
parent c50b91eacb
commit 8f3a913b7e
19 changed files with 344 additions and 388 deletions

View File

@@ -0,0 +1,19 @@
using System.Collections.Generic;
using Interfaces;
using Sirenix.OdinInspector;
using Sirenix.Serialization;
using UnityEngine;
namespace Inventory
{
[CreateAssetMenu(menuName = "Game/Item/StatModifierItem")]
public class StatModifierItem : SerializedScriptableObject
{
public string itemName;
[TextArea] public string description;
public Sprite icon;
public List<IStatModifier> cures = new();
public List<IStatModifier> curses = new();
}
}