diff options
author | archshift <admin@archshift.com> | 2014-06-08 12:27:22 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-06-17 20:39:20 +0200 |
commit | 73cea7065db458da7704917788ac80b75e042d6e (patch) | |
tree | 9f3aff26a5eccaec2ecf1391b90a89f730a9d7f9 /src/Entities/Player.cpp | |
parent | Added splash potion functionality (diff) | |
download | cuberite-73cea7065db458da7704917788ac80b75e042d6e.tar cuberite-73cea7065db458da7704917788ac80b75e042d6e.tar.gz cuberite-73cea7065db458da7704917788ac80b75e042d6e.tar.bz2 cuberite-73cea7065db458da7704917788ac80b75e042d6e.tar.lz cuberite-73cea7065db458da7704917788ac80b75e042d6e.tar.xz cuberite-73cea7065db458da7704917788ac80b75e042d6e.tar.zst cuberite-73cea7065db458da7704917788ac80b75e042d6e.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index b4b344584..6bceab26f 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -570,7 +570,7 @@ bool cPlayer::Feed(int a_Food, double a_Saturation) void cPlayer::FoodPoison(int a_NumTicks) { - AddEntityEffect(cEntityEffect::efHunger, cEntityEffect(a_NumTicks, 0, NULL)); + AddEntityEffect(cEntityEffect::effHunger, cEntityEffect(a_NumTicks, 0, NULL)); } @@ -1872,17 +1872,17 @@ void cPlayer::HandleEntityEffects(cEntityEffect::eType a_EffectType, cEntityEffe switch (a_EffectType) { // Effects whose behaviors are overridden - case cEntityEffect::efMiningFatigue: + case cEntityEffect::effMiningFatigue: { // TODO: Implement me! return; } - case cEntityEffect::efHunger: + case cEntityEffect::effHunger: { m_FoodExhaustionLevel += 0.025; // 0.5 per second = 0.025 per tick return; } - case cEntityEffect::efSaturation: + case cEntityEffect::effSaturation: { // Increase saturation 1 per tick, adds 1 for every increase in level m_FoodSaturationLevel += (1 + a_Effect.GetIntensity()); @@ -1890,8 +1890,8 @@ void cPlayer::HandleEntityEffects(cEntityEffect::eType a_EffectType, cEntityEffe } // Client-side-only effects - case cEntityEffect::efNausia: - case cEntityEffect::efNightVision: + case cEntityEffect::effNausea: + case cEntityEffect::effNightVision: { return; } |