2025-07-19 19:03:53 +08:00
|
|
|
|
namespace Data
|
|
|
|
|
{
|
2025-08-19 20:22:10 +08:00
|
|
|
|
public enum ItemRarity
|
|
|
|
|
{
|
|
|
|
|
Common,
|
|
|
|
|
Uncommon,
|
|
|
|
|
Rare,
|
|
|
|
|
Epic,
|
|
|
|
|
Legendary
|
|
|
|
|
}
|
2025-07-25 19:16:58 +08:00
|
|
|
|
public class ItemDef:Define
|
2025-07-19 19:03:53 +08:00
|
|
|
|
{
|
|
|
|
|
public ImageDef texture;
|
2025-08-19 20:22:10 +08:00
|
|
|
|
public ItemRarity rarity = ItemRarity.Common;
|
|
|
|
|
public int maxStack = 1; // 最大堆叠数量,默认为1
|
|
|
|
|
public bool ssEquippable = false; // 是否可装备
|
2025-07-19 19:03:53 +08:00
|
|
|
|
}
|
2025-07-25 19:16:58 +08:00
|
|
|
|
|
|
|
|
|
public class WeaponDef : ItemDef
|
|
|
|
|
{
|
2025-08-19 20:22:10 +08:00
|
|
|
|
public AttributesDef attributes;
|
2025-07-25 19:16:58 +08:00
|
|
|
|
}
|
2025-07-19 19:03:53 +08:00
|
|
|
|
}
|