Skip to content

Commit

Permalink
Display HP info for Enemies
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjie He committed Jul 30, 2019
1 parent 2d98c74 commit 6b69b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion floor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void Floor::playerAtk(std::string direction) {
pc->setKilledMerch(true);
}
double damage = ceil((100 / (100 + static_cast<double>(e->getDef()))) * pc->getAtk());
s << "PC deals " << damage << " damages to " << e->getChar() << ". ";
s << "PC deals " << damage << " damages to " << e->getChar() << " (" << e->getHP() << " HP). ";
td->addAction(s.str());
} else {
td->addAction("PC cannot attack an Empty Cell! ");
Expand Down

0 comments on commit 6b69b49

Please sign in to comment.