feat: Add core player input, movement, and special ability management systems with new UI components.
This commit is contained in:
+3
-3
@@ -1640,8 +1640,8 @@ func sync_grid_item(x: int, y: int, z: int, item: int):
|
||||
var f1 = enhanced_gridmap.get_cell_item(Vector3i(x, 1, z))
|
||||
|
||||
# Block if Layer 0 is Wall (4) or Void (-1)
|
||||
# OR Layer 1 is already a wall (4 or 13)
|
||||
if f0 in [4, -1] or f1 == 4 or f1 == 13:
|
||||
# OR Layer 1 is already a wall (4)
|
||||
if f0 in [4, -1] or f1 == 4:
|
||||
return
|
||||
|
||||
enhanced_gridmap.set_cell_item(Vector3i(x, y, z), item)
|
||||
@@ -1666,7 +1666,7 @@ func sync_grid_items_batch(data: Array):
|
||||
if y == 1 and item >= 7 and item <= 20:
|
||||
var f0 = enhanced_gridmap.get_cell_item(Vector3i(x, 0, z))
|
||||
var f1 = enhanced_gridmap.get_cell_item(Vector3i(x, 1, z))
|
||||
if f0 in [4, -1] or f1 == 4 or f1 == 13:
|
||||
if f0 in [4, -1] or f1 == 4:
|
||||
continue
|
||||
|
||||
enhanced_gridmap.set_cell_item(Vector3i(x, y, z), item)
|
||||
|
||||
Reference in New Issue
Block a user