Enemies and now using the GOAP AI to decide when to attack the player, but it's very rough right now. I need to sort out how to store the AI states and use them in the System.

This commit is contained in:
Zed A. Shaw 2025-03-14 11:14:25 -04:00
parent 77f2e94515
commit ad71631809
13 changed files with 61 additions and 30 deletions

View file

@ -7,13 +7,15 @@
"no_more_enemies": 4,
"in_combat": 5,
"have_item": 6,
"have_healing": 7
"have_healing": 7,
"detect_enemy": 8
},
"actions": [
{
"name": "find_enemy",
"cost": 5,
"needs": {
"detect_enemy": true,
"in_combat": false,
"no_more_enemies": false,
"enemy_found": false
@ -68,7 +70,8 @@
"no_more_enemies": false,
"in_combat": false,
"have_item": false,
"have_healing": false
"have_healing": false,
"detect_enemy": true
},
"Walker::final_state": {
"enemy_found": true,
@ -79,12 +82,14 @@
"no_more_enemies": true
},
"Enemy::initial_state": {
"detect_enemy": false,
"enemy_found": false,
"enemy_dead": false,
"health_good": true,
"in_combat": false
},
"Enemy::final_state": {
"detect_enemy": true,
"enemy_found": true,
"enemy_dead": true,
"health_good": true