feat: update

This commit is contained in:
2026-06-12 18:05:04 +08:00
parent 8a2fb36a98
commit 9dd3c59edf
67 changed files with 2298 additions and 74 deletions
+2 -2
View File
@@ -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.")