From 1e9af56a67ae3765291361d9bf01e9009cfb4dcc Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Wed, 28 Dec 2011 02:10:05 +0000 Subject: - Implemented Drops from Burning animals - added right monster health and attack strength - refactored the Pawn/Monster/Player class a little bit - changed some namings to fit the style git-svn-id: http://mc-server.googlecode.com/svn/trunk@140 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSquid.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source/cSquid.cpp') diff --git a/source/cSquid.cpp b/source/cSquid.cpp index af4b167f2..7ff964ce5 100644 --- a/source/cSquid.cpp +++ b/source/cSquid.cpp @@ -35,16 +35,9 @@ void cSquid::Tick(float a_Dt) //TODO Not a real behavior, but cool :D - if(!IsBlockWater(GetWorld()->GetBlock(Pos.x, Pos.y, Pos.z))) + if(!IsBlockWater(GetWorld()->GetBlock((int) Pos.x, (int) Pos.y, (int) Pos.z)) && GetMetaData() != BURNING) { - //Die slowly Muhahaha :D (To prevent all this squids on the land :D) - m_NoWater += a_Dt; - - if(m_NoWater > 1000.f) - { - m_NoWater -= 1000.f; - TakeDamage(1, this); - } + SetMetaData(BURNING); } } \ No newline at end of file -- cgit v1.2.3