summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-08 12:27:22 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:20 +0200
commit73cea7065db458da7704917788ac80b75e042d6e (patch)
tree9f3aff26a5eccaec2ecf1391b90a89f730a9d7f9 /src/Entities/Player.cpp
parentAdded splash potion functionality (diff)
downloadcuberite-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 '')
-rw-r--r--src/Entities/Player.cpp12
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;
}