feat: update
This commit is contained in:
@@ -149,7 +149,7 @@ func can_use_special() -> bool:
|
||||
|
||||
func enable_attack_mode():
|
||||
"""Enable Attack Mode without consuming boost."""
|
||||
player.is_attack_mode = true
|
||||
player.set("is_attack_mode", true)
|
||||
NotificationManager.send_message(player, NotificationManager.MESSAGES.ATTACK_MODE_READY, NotificationManager.MessageType.POWERUP)
|
||||
print("[PowerUp] Attack Mode Enabled (Free).")
|
||||
|
||||
@@ -177,7 +177,7 @@ func consume_boost(amount: float):
|
||||
current_boost -= amount
|
||||
if current_boost <= 0:
|
||||
current_boost = 0.0
|
||||
player.is_attack_mode = false # Out of fuel
|
||||
player.set("is_attack_mode", false) # Out of fuel
|
||||
emit_signal("boost_reset") # UI update for empty
|
||||
print("[PowerUp] Boost depleted. Attack Mode OFF.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user