Now saddled horses spawn a saddle pickup when killed
This commit is contained in:
parent
5a723454a9
commit
1ff051c9a3
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||||
|
|
||||||
#include "Horse.h"
|
#include "Horse.h"
|
||||||
@ -142,6 +141,10 @@ void cHorse::OnRightClicked(cPlayer & a_Player)
|
|||||||
void cHorse::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
void cHorse::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||||
{
|
{
|
||||||
AddRandomDropItem(a_Drops, 0, 2, E_ITEM_LEATHER);
|
AddRandomDropItem(a_Drops, 0, 2, E_ITEM_LEATHER);
|
||||||
|
if (m_bIsSaddled)
|
||||||
|
{
|
||||||
|
a_Drops.push_back(cItem(E_ITEM_SADDLE, 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user