1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
using Godot; [GlobalClass] public partial class StatModifierResource : Resource { public enum StatType { Damage, MoveSpeed, MaxHealth, ProjectileSpeed } [Export] public StatType Stat { get; set; } = StatType.Damage; [Export] public float Additive { get; set; } = 0.0f; [Export] public float Multiplier { get; set; } = 1.0f; }