no fucking bots
This commit is contained in:
+4
-1
@@ -86,6 +86,10 @@ func _ready():
|
||||
playerboard.fill(-1)
|
||||
return
|
||||
|
||||
# Disable Beehave tree if this is not a bot
|
||||
if not is_bot and has_node("BehaviorTree"):
|
||||
$BehaviorTree.enabled = false
|
||||
|
||||
# Rest of initialization (only for human players)
|
||||
if enhanced_gridmap:
|
||||
enhanced_gridmap.initialize_astar()
|
||||
@@ -676,7 +680,6 @@ func get_adjacent_playerboard_slots(slot_index) -> Array:
|
||||
|
||||
return adjacent
|
||||
|
||||
|
||||
func has_item_at_current_position() -> bool:
|
||||
var current_cell = Vector3i(current_position.x, 1, current_position.y)
|
||||
return enhanced_gridmap.get_cell_item(current_cell) != -1
|
||||
|
||||
Reference in New Issue
Block a user