feat: enemy_unit now has defeat_enemy_unit and maintain_health separate
This commit is contained in:
parent
12069b6252
commit
a08bb0b2e8
|
@ -5,6 +5,5 @@ requirements_dict = {
|
||||||
"is_target_enemy": true
|
"is_target_enemy": true
|
||||||
}
|
}
|
||||||
desired_state_dict = {
|
desired_state_dict = {
|
||||||
"is_health_safe": true,
|
|
||||||
"is_target_dead": true
|
"is_target_dead": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,5 @@ requirements_dict = {
|
||||||
"is_health_safe": false
|
"is_health_safe": false
|
||||||
}
|
}
|
||||||
desired_state_dict = {
|
desired_state_dict = {
|
||||||
"can_see_target": false,
|
|
||||||
"is_health_safe": true
|
"is_health_safe": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
[gd_scene load_steps=9 format=3 uid="uid://ba17jrcaduowj"]
|
[gd_scene load_steps=9 format=3 uid="uid://ba17jrcaduowj"]
|
||||||
|
|
||||||
[ext_resource type="Goal" uid="uid://b4i4e34046n44" path="res://AI/defeat_enemy_unit.tres" id="1_b1qo1"]
|
[ext_resource type="Goal" uid="uid://b4i4e34046n44" path="res://AI/defeat_enemy_unit.tres" id="1_b1qo1"]
|
||||||
|
[ext_resource type="Goal" uid="uid://btv8ultseri3q" path="res://AI/maintain_health.tres" id="1_jwvis"]
|
||||||
[ext_resource type="AnimationLibrary" uid="uid://crkh5gahl2ci6" path="res://Animation/bean_characters.res" id="2_lrpu6"]
|
[ext_resource type="AnimationLibrary" uid="uid://crkh5gahl2ci6" path="res://Animation/bean_characters.res" id="2_lrpu6"]
|
||||||
|
|
||||||
[sub_resource type="Goal" id="Goal_1c3rq"]
|
|
||||||
requirements_dict = {
|
|
||||||
"has_target": false
|
|
||||||
}
|
|
||||||
desired_state_dict = {
|
|
||||||
"is_health_safe": true
|
|
||||||
}
|
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_5pqvg"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_5pqvg"]
|
||||||
radius = 15.6018
|
radius = 15.6018
|
||||||
|
|
||||||
|
@ -35,7 +28,7 @@ collision_layer = 6
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
|
|
||||||
[node name="ActorWorldState" type="EnemyWorldState" parent="."]
|
[node name="ActorWorldState" type="EnemyWorldState" parent="."]
|
||||||
editor_available_goals = [ExtResource("1_b1qo1"), SubResource("Goal_1c3rq")]
|
editor_available_goals = [ExtResource("1_jwvis"), ExtResource("1_b1qo1")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
|
||||||
[node name="Planner" type="Planner" parent="."]
|
[node name="Planner" type="Planner" parent="."]
|
||||||
|
|
Loading…
Reference in a new issue