Right before coverage destroys everything.

This commit is contained in:
Zed A. Shaw 2025-03-16 23:17:43 -04:00
parent 1d2968f826
commit c4611c0138
9 changed files with 54 additions and 46 deletions

View file

@ -15,6 +15,15 @@ namespace combat {
ai::set(start, name, setting);
}
/*
* BUG: I don't like this, maybe an iterator is better?
*/
ai::Action RitualAI::pop() {
auto result = plan.script.front();
plan.script.pop_front();
return result;
}
void RitualAI::update() {
plan = ai::plan(script, start, goal);
}