fix(candy-survival): initialize local client starting charges and support action_knock_tekton action in is_knock check
This commit is contained in:
@@ -90,6 +90,10 @@ func activate_client_side() -> void:
|
||||
hud_layer.visible = true
|
||||
set_process(true)
|
||||
|
||||
var local = multiplayer.get_unique_id()
|
||||
player_knocks[local] = START_KNOCK
|
||||
player_ghosts[local] = START_GHOST
|
||||
|
||||
if hud_stack_badge:
|
||||
hud_stack_badge.text = "Stack: 0 (x1.0)\nRed: 0x Blue: 0x Green: 0x Yellow: 0x"
|
||||
if hud_knock_label:
|
||||
@@ -176,6 +180,8 @@ func start_game_mode() -> void:
|
||||
player_last_knocked_by[pid] = 0
|
||||
_update_candy_badge(pid)
|
||||
_update_special_inventory_for_ghosts(pid)
|
||||
rpc("sync_knock_charge_count", pid, START_KNOCK)
|
||||
rpc("sync_ghost_charge_count", pid, START_GHOST)
|
||||
|
||||
print("[CandySurvival] Started with %d players" % pids.size())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user