From 1e5a15c0a5e24fb4b358fff75a7082d65496e1f9 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 8 Jun 2013 18:31:30 +0200 Subject: Readded level handling Things done: Wrote a entity:give_experience function (lua side only). Renamed characterpoints to attributepoints (no db update. Did not want to do one for a simple rename). Temponary introduced a ATTR_LEVEL constant. TODO: dehardcode this. Script binds for settings the correction and attribute points. --- src/account-server/character.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/account-server/character.h') diff --git a/src/account-server/character.h b/src/account-server/character.h index 58e32dad..1fa0e975 100644 --- a/src/account-server/character.h +++ b/src/account-server/character.h @@ -245,11 +245,11 @@ class CharacterData Possessions &getPossessions() { return mPossessions; } - void setCharacterPoints(int points) - { mCharacterPoints = points; } + void setAttributePoints(int points) + { mAttributePoints = points; } - int getCharacterPoints() const - { return mCharacterPoints; } + int getAttributePoints() const + { return mAttributePoints; } void setCorrectionPoints(int points) { mCorrectionPoints = points; } @@ -283,7 +283,7 @@ class CharacterData unsigned char mGender; //!< Gender of the being. unsigned char mHairStyle; //!< Hair style of the being. unsigned char mHairColor; //!< Hair color of the being. - short mCharacterPoints; //!< Unused character points. + short mAttributePoints; //!< Unused character points. short mCorrectionPoints; //!< Unused correction points. unsigned char mAccountLevel; //!< Level of the associated account. -- cgit v1.2.3-70-g09d2