diff options
author | David Athay <ko2fan@gmail.com> | 2008-11-04 17:09:57 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-11-04 17:09:57 +0000 |
commit | 19453b72070b4c96fa4d3cc69999dd452316c789 (patch) | |
tree | 70775a4499cc45d55cc1de7ce39faaf66918d593 /src/game-server/character.hpp | |
parent | 861fcef3203ffe32c3d8e9b62aa79e2a54934c09 (diff) | |
download | manaserv-19453b72070b4c96fa4d3cc69999dd452316c789.tar.gz manaserv-19453b72070b4c96fa4d3cc69999dd452316c789.tar.bz2 manaserv-19453b72070b4c96fa4d3cc69999dd452316c789.tar.xz manaserv-19453b72070b4c96fa4d3cc69999dd452316c789.zip |
Added updating party member health.
Diffstat (limited to 'src/game-server/character.hpp')
-rw-r--r-- | src/game-server/character.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp index 6e31e33b..75ef9ee1 100644 --- a/src/game-server/character.hpp +++ b/src/game-server/character.hpp @@ -254,6 +254,12 @@ class Character : public Being { mExperience[skill] = 0; receiveExperience(skill + CHAR_SKILL_BEGIN , value) ; } /** + * Shortcut to get being's health + */ + int getHealth() const + { return getModifiedAttribute(CHAR_ATTR_VITALITY); } + + /** * Returns the exp needed to reach a specific skill level */ static int expForLevel(int level); |