summaryrefslogtreecommitdiffstats
path: root/source/cCow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cCow.cpp')
-rw-r--r--source/cCow.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/source/cCow.cpp b/source/cCow.cpp
index 517fa84d8..7ed21d504 100644
--- a/source/cCow.cpp
+++ b/source/cCow.cpp
@@ -19,7 +19,7 @@
#include <string>
-
+//TODO: Milk Cow
cCow::cCow()
: m_ChaseTime( 999999 )
@@ -49,16 +49,14 @@ void cCow::Tick(float a_Dt)
void cCow::KilledBy( cEntity* a_Killer )
{
- if( (rand() % 5) == 0 )
- {
- cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_EGG, 1 ) );
- Pickup->Initialize( GetWorld() );
- }
- if( (rand() % 1) == 0 )
- {
- cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_FEATHER, 1 ) );
- Pickup->Initialize( GetWorld() );
- }
+ //Drops 0-2 Lether
+ cMonster::RandomDropItem(E_ITEM_LEATHER, 0, 2);
+
+ //Drops 1-3 Raw beefs
+ cMonster::RandomDropItem(E_ITEM_LEATHER, 1, 3);
+
+ //TODO: Check wheather burning and drop 1-3 steak instead
+
cMonster::KilledBy( a_Killer );
}