1
0

changed function name

This commit is contained in:
Daniel O'Brien 2013-11-14 07:07:57 +11:00
parent 8c6bdca425
commit b0be6cb02d
2 changed files with 4 additions and 4 deletions

View File

@ -284,7 +284,7 @@ int cPlayer::CalcLevelFromXp(int a_XpTotal)
int cPlayer::XpAtLevel(int a_Level) int cPlayer::XpForLevel(int a_Level)
{ {
//level 0 to 15 //level 0 to 15
if(a_Level <= 15) if(a_Level <= 15)

View File

@ -66,7 +66,7 @@ public:
/** Sets the experience total /** Sets the experience total
Returns true on success Returns true on success
should really only be called at init or player death "should" really only be called at init or player death, plugins excepted
*/ */
bool SetExperience(int a_XpTotal); bool SetExperience(int a_XpTotal);
@ -410,8 +410,8 @@ protected:
/// Player Xp level /// Player Xp level
int m_XpTotal; int m_XpTotal;
/// Caculates the Xp at a given level, ref: http://minecraft.gamepedia.com/XP /// Caculates the Xp needed for a given level, ref: http://minecraft.gamepedia.com/XP
static int XpAtLevel(int a_Level); static int XpForLevel(int a_Level);
/// inverse of XpAtLevel, ref: http://minecraft.gamepedia.com/XP values are as per this with pre-calculations /// inverse of XpAtLevel, ref: http://minecraft.gamepedia.com/XP values are as per this with pre-calculations
static int CalcLevelFromXp(int a_XpTotal); static int CalcLevelFromXp(int a_XpTotal);