You now have blood on your screen when below half health.
This commit is contained in:
parent
1c8f542c21
commit
d2700d2928
12 changed files with 90 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue