summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-17 05:22:17 +0200
committerarchshift <admin@archshift.com>2014-06-19 07:54:14 +0200
commitf5529e544cf8350daf8a20bb8d997f85ee2824f7 (patch)
tree6cf5b1e2989671e7f5b9100e66b8cee015777f14 /src/Entities/Player.cpp
parentEntity effects: changed User to Creator, removed pawn pass-by-value (diff)
downloadcuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.tar
cuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.tar.gz
cuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.tar.bz2
cuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.tar.lz
cuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.tar.xz
cuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.tar.zst
cuberite-f5529e544cf8350daf8a20bb8d997f85ee2824f7.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index b7a315a40..77ab6d309 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1867,43 +1867,6 @@ void cPlayer::TickBurning(cChunk & a_Chunk)
-void cPlayer::HandleEntityEffect(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect)
-{
- switch (a_EffectType)
- {
- // Effects whose behaviors are overridden
- case cEntityEffect::effMiningFatigue:
- {
- // TODO: Implement me!
- return;
- }
- case cEntityEffect::effHunger:
- {
- m_FoodExhaustionLevel += 0.025; // 0.5 per second = 0.025 per tick
- return;
- }
- case cEntityEffect::effSaturation:
- {
- // Increase saturation 1 per tick, adds 1 for every increase in level
- m_FoodSaturationLevel += (1 + a_Effect.GetIntensity());
- return;
- }
-
- // Client-side-only effects
- case cEntityEffect::effNausea:
- case cEntityEffect::effNightVision:
- {
- return;
- }
- }
-
- super::HandleEntityEffect(a_EffectType, a_Effect);
-}
-
-
-
-
-
void cPlayer::HandleFood(void)
{
// Ref.: http://www.minecraftwiki.net/wiki/Hunger