add InitialCooldown property to buttons

This commit is contained in:
XtraCube committed 2025-01-03 19:05:00 -05:00
1 parent 96f108ab92
commit c32eabcdff
1 file changed
+6 -1
+6 -1
View File
@@ -19,6 +19,11 @@ public abstract class CustomActionButton
/// </summary>
public abstract string Name { get; }
/// <summary>
/// Gets the initial cooldown duration in seconds.
/// </summary>
public virtual float InitialCooldown => Cooldown;
/// <summary>
/// Gets the button's cooldown duration in seconds.
/// </summary>
@@ -82,7 +87,7 @@ public abstract class CustomActionButton
}
UsesLeft = MaxUses;
Timer = Cooldown;
Timer = InitialCooldown;
EffectActive = false;
Button = Object.Instantiate(HudManager.Instance.AbilityButton, parent);