diff options
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r-- | src/game-server/character.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index 95082d6b..b2a21c5a 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -506,6 +506,19 @@ void Character::receiveExperience(int skill, int experience, int optimalLevel) } } +void Character::incrementKillCount(int monsterType) +{ + std::map<int, int>::iterator i = mKillCount.find(monsterType); + if (i == mKillCount.end()) + { + // character has never murdered this species before + mKillCount[monsterType] = 1; + } else { + // character is a repeated offender + mKillCount[monsterType] ++; + }; +} + void Character::recalculateLevel() { std::list<float> levels; |