8 lines
282 B
GDScript
8 lines
282 B
GDScript
extends TurnEndBehaviour
|
|
class_name TurnEndBehaviourBee
|
|
|
|
func trigger(tile: InsectTile, map: HexGrid, was_turn_black: bool = false) -> void:
|
|
if map.get_empty_neighbours(tile.coordinates).size() == 0:
|
|
# Game Over for this player
|
|
GameEvents.game_over.emit(!tile.is_black)
|
|
pass
|