feat: Add EnhancedGridMap for dynamic grid generation, pathfinding, and network synchronization, and introduce core game scripts for Tekton entities and managers.
This commit is contained in:
@@ -580,7 +580,9 @@ func clear_path_visualization(floor_index: int = 0):
|
||||
# Cost calculation and updates
|
||||
func get_cell_cost(x: int, z: int, floor_index: int = 0) -> float:
|
||||
var cell_item = get_cell_item(Vector3i(x, floor_index, z))
|
||||
if cell_item in non_walkable_items:
|
||||
|
||||
# Block -1 (Void) and Non-Walkable Items
|
||||
if cell_item == -1 or cell_item in non_walkable_items:
|
||||
return INF
|
||||
elif cell_item == hover_item:
|
||||
return 0.5
|
||||
|
||||
Reference in New Issue
Block a user