summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Zombiepigman.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-18 23:17:43 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-18 23:17:43 +0200
commit3e698d7b72ad7f58a1a2ab787f49c82e096845f6 (patch)
treecb7ae4dec5750c6e0c5116c80493d2b9e5a4eb52 /source/Mobs/Zombiepigman.cpp
parentImplemented redstone comparators (diff)
downloadcuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.tar
cuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.tar.gz
cuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.tar.bz2
cuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.tar.lz
cuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.tar.xz
cuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.tar.zst
cuberite-3e698d7b72ad7f58a1a2ab787f49c82e096845f6.zip
Diffstat (limited to 'source/Mobs/Zombiepigman.cpp')
-rw-r--r--source/Mobs/Zombiepigman.cpp26
1 files changed, 5 insertions, 21 deletions
diff --git a/source/Mobs/Zombiepigman.cpp b/source/Mobs/Zombiepigman.cpp
index 09b44816f..1aea006a6 100644
--- a/source/Mobs/Zombiepigman.cpp
+++ b/source/Mobs/Zombiepigman.cpp
@@ -1,15 +1,15 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
-#include "Zombiepigman.h"
+#include "ZombiePigman.h"
#include "../World.h"
-cZombiepigman::cZombiepigman(void) :
- super("Zombiepigman", 57, "mob.zombiepig.zpighurt", "mob.zombiepig.zpigdeath", 0.6, 1.8)
+cZombiePigman::cZombiePigman(void) :
+ super("ZombiePigman", 57, "mob.zombiepig.zpighurt", "mob.zombiepig.zpigdeath", 0.6, 1.8)
{
}
@@ -17,23 +17,7 @@ cZombiepigman::cZombiepigman(void) :
-void cZombiepigman::Tick(float a_Dt, cChunk & a_Chunk)
-{
- super::Tick(a_Dt, a_Chunk);
-
- // TODO Same as noticed in cSkeleton AND Do they really burn by sun?? :D In the neather is no sun :D
- if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && !IsOnFire())
- {
- // Burn for 10 ticks, then decide again
- StartBurning(10);
- }
-}
-
-
-
-
-
-void cZombiepigman::GetDrops(cItems & a_Drops, cEntity * a_Killer)
+void cZombiePigman::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
AddRandomDropItem(a_Drops, 0, 1, E_ITEM_ROTTEN_FLESH);
AddRandomDropItem(a_Drops, 0, 1, E_ITEM_GOLD_NUGGET);
@@ -45,7 +29,7 @@ void cZombiepigman::GetDrops(cItems & a_Drops, cEntity * a_Killer)
-void cZombiepigman::KilledBy(cEntity * a_Killer)
+void cZombiePigman::KilledBy(cEntity * a_Killer)
{
super::KilledBy(a_Killer);