mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 03:47:13 +08:00
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/56
22 lines
650 B
C#
22 lines
650 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 string[] attackAnimation;
|
|
public float attackDetectionTime = 0;
|
|
public bool useEntityAttackAnimation = true;
|
|
public WeaponDef() // 构造函数,用于设置武器的默认属性
|
|
{
|
|
maxStack = 1; // 武器默认最大堆叠为1
|
|
ssEquippable = true; // 武器默认可装备
|
|
}
|
|
}
|
|
} |