Fixed more movement bugs, disabled expansions for now. Added turnendbehaviour (for bee, should add trigger by turn end signal)
This commit is contained in:
parent
5722ffab48
commit
26fec25a6e
14 changed files with 154 additions and 37 deletions
|
|
@ -17,9 +17,9 @@ func simulate_move_recursive(start: Vector4i, max_num: int, map: HexGrid, visite
|
|||
continue
|
||||
|
||||
# can reach... can_reach should only apply to our current level
|
||||
if not map.can_reach(start, neighbour):
|
||||
continue
|
||||
|
||||
#if not map.can_reach(start, neighbour):
|
||||
# continue
|
||||
|
||||
visited.append(neighbour)
|
||||
possible.append_array(simulate_move_recursive(neighbour, max_num - 1, map, visited))
|
||||
|
||||
|
|
@ -29,5 +29,11 @@ func get_available_spaces(pos: Vector4i, map: HexGrid) -> Array[Vector4i]:
|
|||
var possible_places: Array[Vector4i] = []
|
||||
|
||||
possible_places = simulate_move_recursive(pos, max_movement_reach, map)
|
||||
|
||||
var possible_with_hats: Array[Vector4i] = []
|
||||
|
||||
for p in possible_places:
|
||||
possible_with_hats.push_back(map.get_highest_in_stack(p))
|
||||
|
||||
|
||||
return possible_places
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue