mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 09:57:13 +08:00
(client) feat:健康给予,路径优化,结算界面,商店界面 (#60)
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/60
This commit is contained in:
@@ -2,17 +2,20 @@ namespace Data
|
||||
{
|
||||
public enum WeaponType
|
||||
{
|
||||
Melee, // 近战武器
|
||||
Ranged // 远程武器
|
||||
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 AttributesDef attributes;
|
||||
public BulletDef bullet;
|
||||
public bool showInHand = false;
|
||||
public WeaponType type = WeaponType.Melee;
|
||||
public bool useEntityAttackAnimation = true;
|
||||
|
||||
public WeaponDef() // 构造函数,用于设置武器的默认属性
|
||||
{
|
||||
maxStack = 1; // 武器默认最大堆叠为1
|
||||
|
||||
Reference in New Issue
Block a user