From 2a56e837b5d0c7ac2611e1941dd1447f704145ed Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Thu, 4 Nov 2010 01:05:58 +0100 Subject: Fully shift being scope attributes into being. Also split updateDerivedAttributes and remove the calc check workaround. Reviewed-by: Bertram. --- src/game-server/character.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/game-server/character.hpp') 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); -- cgit v1.2.3-70-g09d2