feat: Implement core player character logic, including state management, network synchronization, character selection, and manager initialization.
This commit is contained in:
@@ -34,6 +34,9 @@ func grab_item(grid_position: Vector2i) -> bool:
|
||||
if not enhanced_gridmap or not has_ap:
|
||||
return false
|
||||
|
||||
if player.get("is_frozen"):
|
||||
return false
|
||||
|
||||
var cell = Vector3i(grid_position.x, 1, grid_position.y)
|
||||
var item = enhanced_gridmap.get_cell_item(cell)
|
||||
|
||||
@@ -319,7 +322,7 @@ func auto_put_item() -> bool:
|
||||
# Check AP only if in turn-based mode
|
||||
var has_ap = player.action_points > 0 if TurnManager.turn_based_mode else true
|
||||
|
||||
if not enhanced_gridmap or not has_ap or player.is_bot or player.is_in_group("Bots"):
|
||||
if not enhanced_gridmap or not has_ap or player.is_bot or player.is_in_group("Bots") or player.get("is_frozen"):
|
||||
return false
|
||||
|
||||
# Step 1: Find empty adjacent (or current) grid cells
|
||||
|
||||
Reference in New Issue
Block a user