feat: add player core, movement, and playerboard managers, special tile effects system, and lobby scene.
This commit is contained in:
@@ -36,6 +36,10 @@ func rotate_towards_target(target_pos: Vector2i):
|
||||
func simple_move_to(grid_position: Vector2i) -> bool:
|
||||
if not player.is_multiplayer_authority() or is_moving:
|
||||
return false
|
||||
|
||||
# Check if player is frozen
|
||||
if player.get("is_frozen"):
|
||||
return false
|
||||
|
||||
# Check if target is within 1-tile range
|
||||
var distance: int
|
||||
@@ -79,6 +83,10 @@ func move_to_clicked_position(grid_position: Vector2i) -> bool:
|
||||
if not player.is_multiplayer_authority() or is_moving or player.action_points <= 0:
|
||||
return false
|
||||
|
||||
# Check if player is frozen
|
||||
if player.get("is_frozen"):
|
||||
return false
|
||||
|
||||
# Validate grid position is within bounds
|
||||
if not enhanced_gridmap.is_position_valid(grid_position):
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user