Test now can work the enemy AI to prototype behavior.
This commit is contained in:
parent
db5a371766
commit
2815375836
6 changed files with 59 additions and 6 deletions
|
@ -28,6 +28,7 @@
|
|||
"name": "kill_enemy",
|
||||
"cost": 5,
|
||||
"needs": {
|
||||
"health_good": true,
|
||||
"no_more_enemies": false,
|
||||
"enemy_found": true,
|
||||
"enemy_dead": false
|
||||
|
@ -54,11 +55,24 @@
|
|||
"needs": {
|
||||
"have_item": true,
|
||||
"have_healing": true,
|
||||
"in_combat": false,
|
||||
"health_good": false
|
||||
},
|
||||
"effects": {
|
||||
"health_good": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "run_away",
|
||||
"cost": 0,
|
||||
"needs": {
|
||||
"in_combat": true,
|
||||
"have_healing": false,
|
||||
"health_good": false
|
||||
},
|
||||
"effects": {
|
||||
"in_combat": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"states": {
|
||||
|
@ -102,6 +116,6 @@
|
|||
"collect_items",
|
||||
"use_healing"],
|
||||
"Enemy::actions":
|
||||
["find_enemy", "kill_enemy"]
|
||||
["find_enemy", "kill_enemy", "run_away", "use_healing"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue