[BREAKING] Battle system now runs the turn based combat better, and lots of interesting things like if you don't choose an action the host AI rebels and does it for you.
This commit is contained in:
parent
9739441a9c
commit
986b2612d4
9 changed files with 100 additions and 32 deletions
2
ai.cpp
2
ai.cpp
|
|
@ -126,7 +126,7 @@ namespace ai {
|
|||
|
||||
Action load_action(std::string action_name) {
|
||||
check(initialized, "you forgot to initialize the AI first.");
|
||||
check(AIMGR.states.contains(action_name), fmt::format(
|
||||
check(AIMGR.actions.contains(action_name), fmt::format(
|
||||
"ai::load_action({}): action does not exist in config",
|
||||
action_name));
|
||||
return AIMGR.actions.at(action_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue