Files
Gen_Hack-and-Slash-Roguelite/Client/Assets/Scripts/Data/ItemDef.cs

19 lines
402 B
C#
Raw Normal View History

namespace Data
{
public enum ItemRarity
{
Common,
Uncommon,
Rare,
Epic,
Legendary
}
2025-08-25 18:24:12 +08:00
public class ItemDef : Define
{
public ImageDef texture;
public ItemRarity rarity = ItemRarity.Common;
2025-08-25 18:24:12 +08:00
public int maxStack = 10; // 最大堆叠数量默认为10
public bool ssEquippable = false; // 是否可装备
}
}