diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp index 5d30614c..4c3c03f6 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -191,6 +191,18 @@ Being::takeDamage(int amount) } void +Being::showXP(int amount) +{ + gcn::Font* font; + std::string xp = (amount ? toString(amount) : "") + " xp"; + + font = hitYellowFont; + + // show xp number + particleEngine->addTextRiseFadeOutEffect(xp, font, mPx + 16, mPy - 16); +} + +void Being::handleAttack(Being *victim, int damage) { setAction(Being::ATTACK); |