feat: Add core player entity with movement, race, input, character selection, and multiplayer synchronization, integrating various game managers.
This commit is contained in:
@@ -282,7 +282,7 @@ func randomize_floor(floor_index: int, custom_rng_callable: Callable = Callable(
|
||||
|
||||
# IMPORTANT: Only place items if Floor 0 has a valid ground tile (Walkable, Safe Zone, etc)
|
||||
var floor_0_item = get_cell_item(Vector3i(x, 0, z))
|
||||
var is_ground = (floor_0_item != -1) # All tiles on Layer 0 are valid ground
|
||||
var is_ground = (floor_0_item != -1 and not floor_0_item in non_walkable_items)
|
||||
|
||||
if not is_ground:
|
||||
set_cell_item(Vector3i(x, floor_index, z), -1) # Clear item if no ground
|
||||
|
||||
Reference in New Issue
Block a user