You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
350 B
GDScript
16 lines
350 B
GDScript
@tool
|
|
extends ActionCheck
|
|
class_name ActionAlertCheck
|
|
|
|
@export var key: Enum.EAIRoleType = Enum.EAIRoleType.None
|
|
|
|
@export var is_alert: bool
|
|
|
|
func _generate_name():
|
|
return "AI已激活" if is_alert else "AI未激活"
|
|
|
|
func run(character: Character) -> BT.Status:
|
|
if character.get_status("ai_is_alert") == is_alert:
|
|
return SUCCESS
|
|
return FAILURE
|