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:
7
ai/tasks/conditions/has_quest.gd
Normal file
7
ai/tasks/conditions/has_quest.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
extends BTCondition
|
||||
var invert : bool
|
||||
func _tick(delta: float) -> Status:
|
||||
if agent.data and ((agent.data.quest == null) == invert):
|
||||
return SUCCESS
|
||||
else:
|
||||
return FAILURE
|
||||
Reference in New Issue
Block a user