New art assets, work on implementing more adventurer behavior and making them work better together, and steps towards completing the first quest loop.
This commit is contained in:
22
ai/tasks/decorators/busy.gd
Normal file
22
ai/tasks/decorators/busy.gd
Normal file
@@ -0,0 +1,22 @@
|
||||
@tool
|
||||
extends BTDecorator
|
||||
|
||||
|
||||
var prev_busy : bool
|
||||
|
||||
func _get_task_icon():
|
||||
return load("res://ai/icons/stopwatch.png")
|
||||
|
||||
|
||||
func _enter() -> void:
|
||||
if agent.get("busy") != null:
|
||||
prev_busy = agent.busy
|
||||
agent.busy = true
|
||||
|
||||
func _exit() -> void:
|
||||
if agent.get("busy") != null:
|
||||
agent.busy = prev_busy
|
||||
|
||||
# Called to generate a display name for the task (requires @tool).
|
||||
func _generate_name() -> String:
|
||||
return "Busy"
|
||||
Reference in New Issue
Block a user