A quick fix for the dungeon combat.
This commit is contained in:
parent
6e35ff3d6d
commit
4958f24c1d
3 changed files with 5 additions and 3 deletions
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
using std::string;
|
||||
using namespace fmt;
|
||||
using namespace combat;
|
||||
using namespace components;
|
||||
using namespace DinkyECS;
|
||||
using lighting::LightSource;
|
||||
|
|
@ -261,6 +262,7 @@ void System::combat(int attack_id) {
|
|||
|
||||
while(auto act = battle.next()) {
|
||||
auto [enemy, enemy_action, cost, host_state] = *act;
|
||||
if(host_state != BattleHostState::not_host) continue;
|
||||
|
||||
components::CombatResult result {
|
||||
player_combat.attack(*enemy.combat), 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue