Simple battle system included in the boss fight but I need to figure out how it should operate.

This commit is contained in:
Zed A. Shaw 2025-11-19 13:26:21 -05:00
parent d418f073f0
commit 8ee3e8736f
8 changed files with 75 additions and 17 deletions

View file

@ -210,8 +210,6 @@ void System::death() {
});
// this goes through everything that died and changes them to a gravestone
// NOTE: this could be a separate system but also could be a function in
// components::
for(auto ent : dead_things) {
if(auto snd = world.get_if<Sound>(ent)) {
sound::stop(snd->attack);
@ -255,6 +253,8 @@ void System::combat(int attack_id) {
battle.plan();
}
battle.dump();
while(auto act = battle.next()) {
auto [enemy, enemy_action] = *act;