Files
tekton/scripts/arrange_action.gd
T
2025-01-28 13:53:59 +08:00

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