fix(candy-survival): initialize local client starting charges and support action_knock_tekton action in is_knock check
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user