diff options
author | Freeyorp <Freeyorp101@hotmail.com> | 2010-11-04 01:05:58 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-11-04 01:07:25 +0100 |
commit | 2a56e837b5d0c7ac2611e1941dd1447f704145ed (patch) | |
tree | 5db90e7b05584ca687a57d7f96c1f4e3de9d96a8 /src/game-server/character.hpp | |
parent | 52e26203064bff7c9d01d801d800b65e0cb8e190 (diff) | |
download | manaserv-2a56e837b5d0c7ac2611e1941dd1447f704145ed.tar.gz manaserv-2a56e837b5d0c7ac2611e1941dd1447f704145ed.tar.bz2 manaserv-2a56e837b5d0c7ac2611e1941dd1447f704145ed.tar.xz manaserv-2a56e837b5d0c7ac2611e1941dd1447f704145ed.zip |
Fully shift being scope attributes into being.
Also split updateDerivedAttributes and remove the calc check workaround.
Reviewed-by: Bertram.
Diffstat (limited to 'src/game-server/character.hpp')
-rw-r--r-- | src/game-server/character.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp index 99d9953b..ed41c2b2 100644 --- a/src/game-server/character.hpp +++ b/src/game-server/character.hpp @@ -227,7 +227,16 @@ class Character : public Being void modifiedAllAttribute(); /** - * Updates base Being attributes. + * Recalculate the base value of an attribute and update derived + * attributes if it has changed. + * @returns Whether it was changed. + */ + bool recalculateBaseAttribute(unsigned int); + + /** + * Attribute has changed, recalculate base value of dependant + * attributes (and handle other actions for the modified + * attribute) */ void updateDerivedAttributes(unsigned int); |