Implemented mana regeneration
This commit is contained in:
@@ -10,7 +10,7 @@ using Godot;
|
||||
namespace Movementtests.forge.abilities;
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/white/icon_animation.png")]
|
||||
public partial class REmpoweredAction(float cost, float cooldown) : Resource
|
||||
public partial class REmpoweredAction(float cost, float cooldown, float manaRegenPause) : Resource
|
||||
{
|
||||
[Export(PropertyHint.Range, "0,100,1,or_greater")]
|
||||
public float Cost { get; set; } = cost;
|
||||
@@ -18,7 +18,10 @@ public partial class REmpoweredAction(float cost, float cooldown) : Resource
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float Cooldown { get; set; } = cooldown;
|
||||
|
||||
public REmpoweredAction() : this(20.0f, 1.0f)
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float ManaRegenPause { get; set; } = manaRegenPause;
|
||||
|
||||
public REmpoweredAction() : this(20.0f, 1.0f, 3.0f)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user