Horses have a tiny chance of being generated with a saddle
Saddles are rare. Make them less so by giving domestic saddleable creatures 1% chance of being generated with a saddle.
This commit is contained in:
@@ -1302,6 +1302,13 @@ int mmflags;
|
|||||||
m_initweap(mtmp); /* equip with weapons / armor */
|
m_initweap(mtmp); /* equip with weapons / armor */
|
||||||
m_initinv(mtmp); /* add on a few special items incl. more armor */
|
m_initinv(mtmp); /* add on a few special items incl. more armor */
|
||||||
m_dowear(mtmp, TRUE);
|
m_dowear(mtmp, TRUE);
|
||||||
|
|
||||||
|
if (!rn2(100) && is_domestic(ptr)
|
||||||
|
&& can_saddle(mtmp) && !which_armor(mtmp, W_SADDLE)) {
|
||||||
|
struct obj *otmp = mksobj(SADDLE, TRUE, FALSE);
|
||||||
|
put_saddle_on_mon(otmp, mtmp);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* no initial inventory is allowed */
|
/* no initial inventory is allowed */
|
||||||
if (mtmp->minvent)
|
if (mtmp->minvent)
|
||||||
|
|||||||
Reference in New Issue
Block a user