valid tile placement implemented
This commit is contained in:
parent
cabc35394f
commit
aa4343309c
40 changed files with 173 additions and 201 deletions
|
|
@ -175,9 +175,9 @@ func _on_insect_selected(insect_resource: TileResource, is_black: bool) -> void:
|
|||
if not used_cells.has(neighbour):
|
||||
continue
|
||||
|
||||
#if used_cells[neighbour].is_black != is_black:
|
||||
# eligible = false
|
||||
# break
|
||||
if used_cells[neighbour].is_black != is_black:
|
||||
eligible = false
|
||||
break
|
||||
|
||||
if eligible:
|
||||
var outline = HEX_OUTLINE.instantiate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue