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:
parent
a8863cf687
commit
f50e713179
9 changed files with 55 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue