AI now follows the A* algorithm more closely by using a separate priority queue from the open_set.
This commit is contained in:
parent
72951f308f
commit
922fbeba0e
9 changed files with 72 additions and 75 deletions
|
@ -25,11 +25,26 @@
|
|||
"enemy_found": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "run_away",
|
||||
"cost": 0,
|
||||
"needs": {
|
||||
"tough_personality": false,
|
||||
"in_combat": true,
|
||||
"no_more_enemies": false,
|
||||
"have_healing": false,
|
||||
"health_good": false,
|
||||
"enemy_found": true,
|
||||
"enemy_dead": false
|
||||
},
|
||||
"effects": {
|
||||
"in_combat": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kill_enemy",
|
||||
"cost": 10,
|
||||
"needs": {
|
||||
"health_good": true,
|
||||
"no_more_enemies": false,
|
||||
"in_combat": true,
|
||||
"enemy_found": true,
|
||||
|
@ -63,19 +78,6 @@
|
|||
"effects": {
|
||||
"health_good": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "run_away",
|
||||
"cost": 0,
|
||||
"needs": {
|
||||
"tough_personality": false,
|
||||
"in_combat": true,
|
||||
"have_healing": false,
|
||||
"health_good": false
|
||||
},
|
||||
"effects": {
|
||||
"in_combat": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"states": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue