Needed to rewrite the pathing to get this to work. I actually had been using a purposefully broken pathing algorithm from when I was making random maps.
This commit is contained in:
parent
c894f6e094
commit
e92fd2b6f3
10 changed files with 169 additions and 111 deletions
|
@ -54,6 +54,19 @@
|
|||
"enemy_dead": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "face_enemy",
|
||||
"cost": 10,
|
||||
"needs": {
|
||||
"no_more_enemies": false,
|
||||
"in_combat": false,
|
||||
"enemy_found": true
|
||||
},
|
||||
"effects": {
|
||||
"in_combat": true,
|
||||
"enemy_dead": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "collect_items",
|
||||
"cost": 5,
|
||||
|
@ -119,6 +132,7 @@
|
|||
"Host::actions":
|
||||
["find_enemy",
|
||||
"kill_enemy",
|
||||
"face_enemy",
|
||||
"collect_items",
|
||||
"use_healing"],
|
||||
"Enemy::actions":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue