Working airplane ability revamp
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Minigames.Airplane.Data
|
||||
[Tooltip("Icon for ability button")]
|
||||
public Sprite abilityIcon;
|
||||
|
||||
[Tooltip("Cooldown duration in seconds")]
|
||||
[Tooltip("Base cooldown duration in seconds (multiplied by cooldownMultiplier based on usage)")]
|
||||
public float cooldownDuration = 5f;
|
||||
|
||||
[Tooltip("Speed while ability is active")]
|
||||
@@ -23,6 +23,13 @@ namespace Minigames.Airplane.Data
|
||||
|
||||
[Tooltip("Direction angle (0 = right, 90 = up)")]
|
||||
public float jetAngle = 0f;
|
||||
|
||||
[Header("Active Duration Settings")]
|
||||
[Tooltip("Maximum duration ability can be active (seconds). Full usage = maxActiveDuration * cooldownMultiplier cooldown")]
|
||||
public float maxActiveDuration = 5f;
|
||||
|
||||
[Tooltip("Cooldown multiplier based on usage time. Full duration = cooldownMultiplier * maxActiveDuration cooldown")]
|
||||
public float cooldownMultiplier = 2f;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -58,14 +65,18 @@ namespace Minigames.Airplane.Data
|
||||
[Tooltip("Icon for ability button")]
|
||||
public Sprite abilityIcon;
|
||||
|
||||
[Tooltip("Cooldown duration in seconds")]
|
||||
[Tooltip("Base cooldown duration in seconds (multiplied by cooldownMultiplier based on usage)")]
|
||||
public float cooldownDuration = 4f;
|
||||
|
||||
[Tooltip("Downward force applied")]
|
||||
public float dropForce = 20f;
|
||||
|
||||
[Tooltip("Distance to drop before returning to normal flight")]
|
||||
public float dropDistance = 5f;
|
||||
[Header("Active Duration Settings")]
|
||||
[Tooltip("Maximum duration ability can be active (seconds). Full usage = maxActiveDuration * cooldownMultiplier cooldown")]
|
||||
public float maxActiveDuration = 3f;
|
||||
|
||||
[Tooltip("Cooldown multiplier based on usage time. Full duration = cooldownMultiplier * maxActiveDuration cooldown")]
|
||||
public float cooldownMultiplier = 2f;
|
||||
|
||||
[Tooltip("Should horizontal velocity be zeroed during drop?")]
|
||||
public bool zeroHorizontalVelocity = true;
|
||||
|
||||
Reference in New Issue
Block a user