From b0be6cb02d674ae93ed06354b68f76a01b3c346d Mon Sep 17 00:00:00 2001 From: Daniel O'Brien Date: Thu, 14 Nov 2013 07:07:57 +1100 Subject: changed function name --- source/Entities/Player.cpp | 2 +- source/Entities/Player.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/Entities') diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp index 88be5de56..f79fbfe7a 100644 --- a/source/Entities/Player.cpp +++ b/source/Entities/Player.cpp @@ -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 if(a_Level <= 15) diff --git a/source/Entities/Player.h b/source/Entities/Player.h index 3623617f2..e89bd3739 100644 --- a/source/Entities/Player.h +++ b/source/Entities/Player.h @@ -66,7 +66,7 @@ public: /** Sets the experience total 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); @@ -410,8 +410,8 @@ protected: /// Player Xp level int m_XpTotal; - /// Caculates the Xp at a given level, ref: http://minecraft.gamepedia.com/XP - static int XpAtLevel(int a_Level); + /// Caculates the Xp needed for a given level, ref: http://minecraft.gamepedia.com/XP + static int XpForLevel(int a_Level); /// inverse of XpAtLevel, ref: http://minecraft.gamepedia.com/XP values are as per this with pre-calculations static int CalcLevelFromXp(int a_XpTotal); -- cgit v1.2.3