From ff762a7ece6400eaeb5e21f3fea7cad00786a8d9 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 5 Sep 2013 22:40:08 +0200 Subject: Moved daylight burning directly into cMonster. --- source/Mobs/Zombie.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'source/Mobs/Zombie.cpp') diff --git a/source/Mobs/Zombie.cpp b/source/Mobs/Zombie.cpp index f3adf1283..9b238baef 100644 --- a/source/Mobs/Zombie.cpp +++ b/source/Mobs/Zombie.cpp @@ -8,28 +8,10 @@ -// They're eating your brains! - cZombie::cZombie(void) : super("Zombie", 54, "mob.zombie.hurt", "mob.zombie.death", 0.6, 1.8) { -} - - - - - -void cZombie::Tick(float a_Dt, cChunk & a_Chunk) -{ - super::Tick(a_Dt, a_Chunk); - if ((GetWorld()->GetBlockSkyLight(GetPosX(), GetPosY(), GetPosZ()) == 15) && (GetWorld()->GetBlock(GetPosX(), GetPosY(), GetPosZ()) != E_BLOCK_SOULSAND)) - { - if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && !IsOnFire()) - { - // Burn for 100 ticks, then decide again - StartBurning(100); - } - } + SetBurnsInDaylight(true); } -- cgit v1.2.3