summaryrefslogtreecommitdiffstats
path: root/source/cCow.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-28 03:10:05 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-28 03:10:05 +0100
commit1e9af56a67ae3765291361d9bf01e9009cfb4dcc (patch)
tree65878a8c373ec163eed3439b7db0fc440810d95b /source/cCow.cpp
parentFixed some things in Core to work for multiple worlds (diff)
downloadcuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.tar
cuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.tar.gz
cuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.tar.bz2
cuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.tar.lz
cuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.tar.xz
cuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.tar.zst
cuberite-1e9af56a67ae3765291361d9bf01e9009cfb4dcc.zip
Diffstat (limited to '')
-rw-r--r--source/cCow.cpp9
1 files changed, 6 insertions, 3 deletions
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 );
}