Add attack data to enemy attacks (might need to rework a little bit for primary/secondary attacks)
24 lines
532 B
C#
24 lines
532 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.Serialization;
|
|
using Godot;
|
|
using Zennysoft.Ma.Adapter;
|
|
|
|
namespace Zennysoft.Game.Ma;
|
|
|
|
[GlobalClass]
|
|
[Meta, Id("weapon_stat_type")]
|
|
public partial class WeaponStats : InventoryItemStats
|
|
{
|
|
[Export]
|
|
[Save("weapon_atk_speed")]
|
|
public double AttackSpeed { get; set; } = 1;
|
|
|
|
[Export]
|
|
[Save("weapon_element")]
|
|
public ElementType WeaponElement { get; set; } = ElementType.None;
|
|
|
|
[Export]
|
|
[Save("weapon_tag")]
|
|
public WeaponTag WeaponTag { get; set; } = WeaponTag.None;
|
|
}
|