summaryrefslogtreecommitdiffstats
path: root/source/Entities/Player.h
diff options
context:
space:
mode:
authorDaniel O'Brien <marmot.daniel@gmail.com>2013-11-16 12:00:45 +0100
committerDaniel O'Brien <marmot.daniel@gmail.com>2013-11-16 12:00:45 +0100
commitb72ced31649f8a851ffe60778e8a603bda941dc9 (patch)
treec5302f550182f4b0e67c5e72efe851116984d0ca /source/Entities/Player.h
parentfixed bug and added SpendExperience() (diff)
downloadcuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.tar
cuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.tar.gz
cuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.tar.bz2
cuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.tar.lz
cuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.tar.xz
cuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.tar.zst
cuberite-b72ced31649f8a851ffe60778e8a603bda941dc9.zip
Diffstat (limited to '')
-rw-r--r--source/Entities/Player.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/Entities/Player.h b/source/Entities/Player.h
index 01a864149..463a6d8dc 100644
--- a/source/Entities/Player.h
+++ b/source/Entities/Player.h
@@ -74,13 +74,10 @@ public:
*/
bool SetCurrentExperience(short a_XpTotal);
- /* Adds Xp, "should" not inc more than MAX_EXPERIENCE_ORB_SIZE unless you're a plugin being funny, *cough* cheating
+ /* changes Xp by Xp_delta, you "shouldn't" not inc more than MAX_EXPERIENCE_ORB_SIZE
Returns the new current experience, -1 on error
*/
- short AddExperience(short a_Xp_delta);
-
- /// "Spend" some experience - ie on enchanting, returns new currentXp
- short SpendExperience(short a_Xp_delta);
+ short DeltaExperience(short a_Xp_delta);
/// Gets the experience total - XpTotal for score on death
inline short GetXpLifetimeTotal(void) { return m_LifetimeTotalXp; }