Just a little cleanup before getting serious again.
This commit is contained in:
parent
52b59d38ad
commit
5b18849ddc
2 changed files with 12 additions and 8 deletions
|
@ -116,12 +116,6 @@ bool GameEngine::hit(string &type) {
|
|||
int damage = determine_damage(type);
|
||||
hit_points -= damage;
|
||||
|
||||
if(is_dead()) {
|
||||
print(ERROR, "YOU DIED!\n");
|
||||
} else {
|
||||
println("DAMAGE {}, HP: {}", damage, hit_points);
|
||||
}
|
||||
|
||||
// super dumb but I'll clean it up later
|
||||
return is_dead();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue