projects
/
42
/
CPP_Module_03
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
755ea05
)
Change the message for dead taking damage
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 18 Oct 2024 08:10:05 +0000
(10:10 +0200)
committer
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 18 Oct 2024 08:10:05 +0000
(10:10 +0200)
ex00/ClapTrap.cpp
patch
|
blob
|
history
diff --git
a/ex00/ClapTrap.cpp
b/ex00/ClapTrap.cpp
index 0acda6c4ccf3267e06c64c4208f7d3c27300f360..47b25bae5c05de383ff01f8b43c93856ca868a7f 100644
(file)
--- a/
ex00/ClapTrap.cpp
+++ b/
ex00/ClapTrap.cpp
@@
-49,7
+49,8
@@
void ClapTrap::attack(const std::string &target)
void ClapTrap::takeDamage(unsigned int amount)
{
if (m_hp == 0)
- std::cout << "ClapTrap " << m_name << " is alread dead.\n";
+ std::cout << "ClapTrap " << m_name <<
+ " is already dead and cannot be damaged further.\n";
else if (amount >= m_hp)
{
std::cout << "ClapTrap " << m_name