More art assets and implemented names and jobs.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
@tool
|
||||
extends BTDecorator
|
||||
|
||||
|
||||
@export var activity : String = ""
|
||||
var prev_busy : bool
|
||||
var prev_activity : String
|
||||
|
||||
func _get_task_icon():
|
||||
return load("res://ai/icons/stopwatch.png")
|
||||
@@ -11,11 +12,15 @@ func _get_task_icon():
|
||||
func _enter() -> void:
|
||||
if agent.get("busy") != null:
|
||||
prev_busy = agent.busy
|
||||
prev_activity = agent.activity
|
||||
agent.busy = true
|
||||
if activity != "":
|
||||
agent.activity = activity
|
||||
|
||||
func _exit() -> void:
|
||||
if agent.get("busy") != null:
|
||||
agent.busy = prev_busy
|
||||
agent.activity = prev_activity
|
||||
|
||||
# Called to generate a display name for the task (requires @tool).
|
||||
func _generate_name() -> String:
|
||||
|
||||
Reference in New Issue
Block a user