You now have blood on your screen when below half health.

This commit is contained in:
Zed A. Shaw 2025-02-13 13:15:20 -05:00
parent 1c8f542c21
commit d2700d2928
12 changed files with 90 additions and 13 deletions

View file

@ -180,7 +180,7 @@ void System::collision(GameLevel &level) {
if(world.has<Curative>(entity)) {
auto& cure = world.get<Curative>(entity);
player_combat.hp += cure.hp;
player_combat.hp = std::min(player_combat.hp + cure.hp, player_combat.max_hp);
world.remove<Curative>(entity);
}