add beehave
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user