Now have enough state to show what's going on in the fight, next is to use graphics and stuff to make it better.

This commit is contained in:
Zed A. Shaw 2025-12-23 00:11:31 -05:00
parent a8863cf687
commit f50e713179
9 changed files with 55 additions and 16 deletions

View file

@ -74,11 +74,10 @@ namespace combat {
host_state = $player_requests.contains(action.name) ? agree : disagree;
}
if(host_state == out_of_ap) {
break;
} else {
if(host_state != out_of_ap) {
enemy.combat->ap -= action.cost;
}
$pending_actions.emplace_back(enemy, action.name, action.cost, host_state);
}