Simple battle system included in the boss fight but I need to figure out how it should operate.
This commit is contained in:
parent
d418f073f0
commit
8ee3e8736f
8 changed files with 75 additions and 17 deletions
|
|
@ -87,7 +87,7 @@ namespace boss {
|
|||
const std::string& player_pos = run % 10 < 5 ? "player1" : "player2";
|
||||
$ui.move_actor("player", player_pos);
|
||||
int attack_id = std::any_cast<int>(data);
|
||||
boss::System::combat(attack_id);
|
||||
boss::System::combat($world, $boss_id, attack_id);
|
||||
state(State::PLAYER_TURN);
|
||||
} break;
|
||||
default:
|
||||
|
|
@ -110,7 +110,7 @@ namespace boss {
|
|||
$ui.move_actor("boss", boss_at);
|
||||
$ui.animate_actor("boss");
|
||||
int attack_id = std::any_cast<int>(data);
|
||||
boss::System::combat(attack_id);
|
||||
boss::System::combat($world, $boss_id, attack_id);
|
||||
state(State::BOSS_TURN);
|
||||
} break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue