From 6b69b4975418a5cf36f1620c47f34100f3ddf972 Mon Sep 17 00:00:00 2001 From: Junjie He Date: Tue, 30 Jul 2019 18:39:56 -0400 Subject: [PATCH] Display HP info for Enemies --- floor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/floor.cc b/floor.cc index eb603e8..836c948 100644 --- a/floor.cc +++ b/floor.cc @@ -376,7 +376,7 @@ void Floor::playerAtk(std::string direction) { pc->setKilledMerch(true); } double damage = ceil((100 / (100 + static_cast(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! ");