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/cCow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/cCow.cpp') diff --git a/source/cCow.cpp b/source/cCow.cpp index 3d20bf2d9..de9815a9d 100644 --- a/source/cCow.cpp +++ b/source/cCow.cpp @@ -23,10 +23,13 @@ void cCow::KilledBy( cEntity* a_Killer ) //Drops 0-2 Lether cMonster::RandomDropItem(E_ITEM_LEATHER, 0, 2); - //Drops 1-3 Raw beefs - cMonster::RandomDropItem(E_ITEM_LEATHER, 1, 3); + if(GetMetaData() == BURNING) + { + cMonster::RandomDropItem(E_ITEM_STEAK, 1, 3); + }else{ + cMonster::RandomDropItem(E_ITEM_RAW_BEEF, 1, 3); + } - //TODO: Check wheather burning and drop 1-3 steak instead cMonster::KilledBy( a_Killer ); } -- cgit v1.2.3