Fixed UI Buttons. TODO: Fix 3D Tile Selection/Hover etc

This commit is contained in:
Sch1nken 2024-03-08 00:22:29 +01:00
parent 5b79dc9822
commit 353c2f8dbc
10 changed files with 1014 additions and 74 deletions

View file

@ -323,6 +323,12 @@ func can_hive_exist_without_tile(tile: InsectTile) -> bool:
var tiles_reached: Array = []
var tiles_available: Array = used_cells.keys().filter(func(coords): return coords != vector_coords)
if tiles_available.size() <= 1:
# If we only have 1 or 2 total tiles, we can always move
# 1 tile should never happen
# two... could theoretically but yeah
return true
# tiles_available has all remaining tiles, we just need to visit every tile from a (random) starting tile
# and compare the size with these of all tiles - 1 (our to be moved one)
var start: Vector4i = tiles_available.front()