BREAKING: First idea for the combat system but there's a bug in goap where I'm not removing closed parts or something like that.

This commit is contained in:
Zed A. Shaw 2025-03-15 22:30:10 -04:00
parent 75db188dc6
commit 63f032ff12
8 changed files with 130 additions and 4 deletions

View file

@ -66,7 +66,7 @@ namespace ai {
inline int h(State start, State goal, Action& action) {
(void)action; // not sure if cost goes here or on d()
return distance_to_goal(start, goal);
return distance_to_goal(start, goal) + action.cost;
}
inline int d(State start, State goal, Action& action) {