More art assets and implemented names and jobs.

This commit is contained in:
2025-08-01 16:10:31 -04:00
parent 697677cf86
commit 110d390755
22 changed files with 3105 additions and 21 deletions

View File

@@ -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: