add beehave

This commit is contained in:
2025-01-28 13:53:59 +08:00
parent d6b69c14ac
commit 144a01556d
112 changed files with 6075 additions and 205 deletions
+12
View File
@@ -0,0 +1,12 @@
extends BeehaveAction
func tick(actor: Node, blackboard: Blackboard) -> bool:
var bot = actor as Node # Your bot node
var best_slot = bot.find_best_arrangement_slot()
if best_slot != -1:
bot.arrange_playerboard_item(best_slot)
bot.action_points -= 2
return true
return false