fix(candy-survival): initialize local client starting charges and support action_knock_tekton action in is_knock check

This commit is contained in:
2026-07-08 17:47:04 +08:00
parent f060a2f4b8
commit 90e320ffac
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func handle_unhandled_input(event):
# 2. Action Buttons (Remappable via InputMap / KEY_Q override for Candy Survival)
var is_knock = false
if LobbyManager.game_mode == "Candy Survival":
is_knock = (event is InputEventKey and event.pressed and not event.echo and event.keycode == KEY_Q)
is_knock = (event is InputEventKey and event.pressed and not event.echo and event.keycode == KEY_Q) or event.is_action_pressed("action_knock_tekton")
else:
is_knock = event.is_action_pressed("action_knock_tekton")