Now saddle pigs spawn a saddle pickup when killed
This commit is contained in:
parent
1eac38f3d7
commit
5a723454a9
@ -22,6 +22,10 @@ cPig::cPig(void) :
|
|||||||
void cPig::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
void cPig::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||||
{
|
{
|
||||||
AddRandomDropItem(a_Drops, 1, 3, IsOnFire() ? E_ITEM_COOKED_PORKCHOP : E_ITEM_RAW_PORKCHOP);
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user