diff options
| author | alex <[email protected]> | 2026-11-23 12:00:20 +0100 |
|---|---|---|
| committer | alex <[email protected]> | 2026-11-23 12:00:20 +0100 |
| commit | 7f4bd1856869d7ae10fa8f07708fbd75c5bb7b1e (patch) | |
| tree | e1fa2d87a79bc8bae87da9e62b19521fe27643e5 /scripts/items/StatModifierResource.cs | |
| parent | 45326f4f10ba2af92ff5d35f0f63e1dc35a4f8eb (diff) | |
| download | godot-testing-7f4bd1856869d7ae10fa8f07708fbd75c5bb7b1e.tar.xz godot-testing-7f4bd1856869d7ae10fa8f07708fbd75c5bb7b1e.zip | |
pesitems
Diffstat (limited to 'scripts/items/StatModifierResource.cs')
| -rw-r--r-- | scripts/items/StatModifierResource.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/items/StatModifierResource.cs b/scripts/items/StatModifierResource.cs new file mode 100644 index 0000000..44ce07b --- /dev/null +++ b/scripts/items/StatModifierResource.cs @@ -0,0 +1,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; +} |
