Autowalker is working way better and now I have a plan for using the AI in the System.

This commit is contained in:
Zed A. Shaw 2025-03-13 13:44:42 -04:00
parent 0623170dbc
commit ee804581a8
11 changed files with 197 additions and 127 deletions

View file

@ -16,7 +16,6 @@
"needs": {
"in_combat": false,
"no_more_enemies": false,
"health_good": true,
"enemy_found": false
},
"effects": {
@ -29,9 +28,9 @@
"needs": {
"no_more_enemies": false,
"enemy_found": true,
"health_good": true,
"enemy_dead": false
},
"effects": {
"enemy_dead": true
}
@ -47,30 +46,6 @@
"no_more_items": true
}
},
{
"name": "find_healing",
"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,
@ -90,23 +65,38 @@
"enemy_dead": false,
"health_good": true,
"no_more_items": false,
"no_more_enemies": false
"no_more_enemies": false,
"in_combat": false,
"have_item": false,
"have_healing": false
},
"Walker::final_state": {
"enemy_found": true,
"enemy_dead": true,
"health_good": true,
"no_more_items": true,
"in_combat": false,
"no_more_enemies": true
},
"Enemy::initial_state": {
"enemy_found": false,
"enemy_dead": false,
"health_good": true,
"in_combat": false
},
"Enemy::final_state": {
"enemy_found": true,
"enemy_dead": true,
"health_good": true
}
},
"scripts": {
"Walker::actions":
["find_enemy",
"kill_enemy",
"find_healing",
"collect_items",
"use_item",
"use_healing"]
"use_healing"],
"Enemy::actions":
["find_enemy", "kill_enemy"]
}
}

View file

@ -54,8 +54,8 @@
"tunnel_with_rocks_stage": "assets/tunnel_with_rocks_stage.png"
},
"worldgen": {
"enemy_probability": 30,
"empty_room_probability": 10,
"enemy_probability": 50,
"empty_room_probability": 1,
"device_probability": 10
}
}