diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 3fdc2f2b..4ba88a33 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -233,9 +233,15 @@ void Being::setSpeech(const std::string &text, int time) showSpeech = true; } -void Being::setDamage(const std::string &text, int time) +void Being::setDamage(short amount, int time) { - damage = text; + if (!amount) { + damage = "miss"; + } else { + std::stringstream damageString; + damageString << amount; + damage = damageString.str(); + } damage_time = tick_time; showDamage = true; } |