~leinnan/raylibGame unlisted

1187f49228346eb91d3a2533f61fda69e4cf0c9d — Leinnan 1 year, 4 months ago 1295659
Remove damage box on damage taken
1 files changed, 3 insertions(+), 0 deletions(-)

M src/systems/DamageSystem.cpp
M src/systems/DamageSystem.cpp => src/systems/DamageSystem.cpp +3 -0
@@ 71,7 71,10 @@ void DamageSystem::Update(entt::registry<> &registry, const float delta) {
                }

                if(isColliding)
                {
                    damageTaken += registry.get<Components::DamageBox>(damageBox).damage;
                    registry.remove<Components::DamageBox>(damageBox);
                }
            }

            destroyable.currentLife -= damageTaken;