More cleanups of the tests and fixes to the room and door positioning.
This commit is contained in:
parent
8e2a691337
commit
02d23bb77d
11 changed files with 75 additions and 78 deletions
|
|
@ -65,18 +65,17 @@ TEST_CASE("battle operations fantasy", "[combat-battle]") {
|
|||
while(auto act = battle.next()) {
|
||||
auto& [enemy, wants_to, cost, enemy_state] = *act;
|
||||
|
||||
fmt::println(">>>>> entity: {} wants to {} cost={}; has {} HP; {} ap",
|
||||
enemy.entity, wants_to,
|
||||
cost, enemy.combat->hp,
|
||||
enemy.combat->ap);
|
||||
// fmt::println(">>>>> entity: {} wants to {} cost={}; has {} HP; {} ap",
|
||||
// enemy.entity, wants_to,
|
||||
// cost, enemy.combat->hp,
|
||||
// enemy.combat->ap);
|
||||
|
||||
switch(enemy_state) {
|
||||
case BattleHostState::agree:
|
||||
fmt::println("HOST and PLAYER requests match {}, doing it.",
|
||||
wants_to);
|
||||
// fmt::println("HOST and PLAYER requests match {}, doing it.", wants_to);
|
||||
break;
|
||||
case BattleHostState::disagree:
|
||||
fmt::println("REBELIOUS ACT: {}", wants_to);
|
||||
// fmt::println("REBELIOUS ACT: {}", wants_to);
|
||||
battle.clear_requests();
|
||||
REQUIRE(battle.$player_requests.size() == 0);
|
||||
break;
|
||||
|
|
@ -86,7 +85,7 @@ TEST_CASE("battle operations fantasy", "[combat-battle]") {
|
|||
}
|
||||
break;
|
||||
case BattleHostState::out_of_ap:
|
||||
fmt::println("ENEMY OUT OF AP");
|
||||
// fmt::println("ENEMY OUT OF AP");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue