feat: Implement Stop n Go game mode with phase management, missions, dynamic safe zones, and associated UI and managers.
This commit is contained in:
@@ -307,8 +307,11 @@ func bot_try_grab_item() -> bool:
|
||||
special_tiles_manager.add_powerup_from_item(item)
|
||||
|
||||
player.playerboard[empty_slot] = item
|
||||
player.rpc("sync_grid_item", current_cell.x, current_cell.y, current_cell.z, -1)
|
||||
player.rpc("sync_playerboard", player.playerboard)
|
||||
|
||||
var main = player.get_tree().get_root().get_node_or_null("Main")
|
||||
if main:
|
||||
main.rpc("sync_grid_item", current_cell.x, current_cell.y, current_cell.z, -1)
|
||||
main.rpc("sync_playerboard", player.name.to_int(), player.playerboard)
|
||||
player.has_performed_action = true
|
||||
player.action_points -= 1
|
||||
_check_goal_completion()
|
||||
@@ -331,8 +334,11 @@ func bot_try_grab_item() -> bool:
|
||||
if empty_slot != -1:
|
||||
if player.is_multiplayer_authority():
|
||||
player.playerboard[empty_slot] = item
|
||||
player.rpc("sync_grid_item", cell.x, cell.y, cell.z, -1)
|
||||
player.rpc("sync_playerboard", player.playerboard)
|
||||
|
||||
var main = player.get_tree().get_root().get_node_or_null("Main")
|
||||
if main:
|
||||
main.rpc("sync_grid_item", cell.x, cell.y, cell.z, -1)
|
||||
main.rpc("sync_playerboard", player.name.to_int(), player.playerboard)
|
||||
player.has_performed_action = true
|
||||
player.action_points -= 1
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user