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

21 lines
600 B
C#

namespace Data
{
public enum WeaponType
{
Melee, // 近战武器
Ranged // 远程武器
}
public class WeaponDef : ItemDef
{
public WeaponType type = WeaponType.Melee;
public AttributesDef attributes;
public BulletDef bullet;
public DrawNodeDef attackAnimation;
public float attackDetectionTime = 0;
public WeaponDef() // 构造函数,用于设置武器的默认属性
{
maxStack = 1; // 武器默认最大堆叠为1
ssEquippable = true; // 武器默认可装备
}
}
}