1
0
Fork 0

Now saddle pigs spawn a saddle pickup when killed

This commit is contained in:
tonibm19 2013-10-28 20:27:05 +01:00
parent 1eac38f3d7
commit 5a723454a9
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ cPig::cPig(void) :
void cPig::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
AddRandomDropItem(a_Drops, 1, 3, IsOnFire() ? E_ITEM_COOKED_PORKCHOP : E_ITEM_RAW_PORKCHOP);
if (m_bIsSaddled)
{
a_Drops.push_back(cItem(E_ITEM_SADDLE, 1));
}
}