diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-09-17 19:40:10 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-09-17 19:40:10 +0200 |
commit | 6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd (patch) | |
tree | 69681d2a6bd1f3572305f7120d9231b394ac9c88 /src/Entities/Entity.cpp | |
parent | IncrementalRedstoneSimulator now has no dependencies on cChunk (diff) | |
download | cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.tar cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.tar.gz cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.tar.bz2 cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.tar.lz cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.tar.xz cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.tar.zst cuberite-6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd.zip |
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r-- | src/Entities/Entity.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 9bcdcffeb..4581eeda8 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -334,10 +334,10 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) cMonster * Monster = (cMonster *)this; switch (Monster->GetMobType()) { - case cMonster::mtSkeleton: - case cMonster::mtZombie: - case cMonster::mtWither: - case cMonster::mtZombiePigman: + case mtSkeleton: + case mtZombie: + case mtWither: + case mtZombiePigman: { a_TDI.FinalDamage += (int)ceil(2.5 * SmiteLevel); break; @@ -352,9 +352,9 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) cMonster * Monster = (cMonster *)this; switch (Monster->GetMobType()) { - case cMonster::mtSpider: - case cMonster::mtCaveSpider: - case cMonster::mtSilverfish: + case mtSpider: + case mtCaveSpider: + case mtSilverfish: { a_TDI.RawDamage += (int)ceil(2.5 * BaneOfArthropodsLevel); // TODO: Add slowness effect @@ -384,9 +384,9 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) cMonster * Monster = (cMonster *)this; switch (Monster->GetMobType()) { - case cMonster::mtGhast: - case cMonster::mtZombiePigman: - case cMonster::mtMagmaCube: + case mtGhast: + case mtZombiePigman: + case mtMagmaCube: { break; }; |