13 lines
291 B
GDScript
13 lines
291 B
GDScript
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
|