Autowalker AI now knows when it has items, and knows it should find healing, but it's not working quite yet.

This commit is contained in:
Zed A. Shaw 2025-03-12 13:56:05 -04:00
parent d15c9b12fd
commit 0623170dbc
6 changed files with 97 additions and 49 deletions

View file

@ -4,13 +4,17 @@
"enemy_dead": 1,
"health_good": 2,
"no_more_items": 3,
"no_more_enemies": 4
"no_more_enemies": 4,
"in_combat": 5,
"have_item": 6,
"have_healing": 7
},
"actions": [
{
"name": "find_enemy",
"cost": 5,
"needs": {
"in_combat": false,
"no_more_enemies": false,
"health_good": true,
"enemy_found": false
@ -45,14 +49,39 @@
},
{
"name": "find_healing",
"cost": 5,
"cost": 0,
"needs": {
"enemy_found": false,
"in_combat": false,
"health_good": false,
"no_more_items": false
},
"effects": {
"health_good": true
}
},
{
"name": "use_item",
"cost": 0,
"needs": {
"have_item": true,
"health_good": true
},
"effects": {
"have_item": false
}
},
{
"name": "use_healing",
"cost": 0,
"needs": {
"have_item": true,
"have_healing": true,
"health_good": false
},
"effects": {
"health_good": true
}
}
],
"states": {
@ -76,6 +105,8 @@
["find_enemy",
"kill_enemy",
"find_healing",
"collect_items"]
"collect_items",
"use_item",
"use_healing"]
}
}