no fucking bots

This commit is contained in:
2025-02-18 11:13:39 +08:00
parent 84457ce915
commit 330d5a401b
3 changed files with 20 additions and 4 deletions
+4 -1
View File
@@ -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