Unify putting a saddle on steed

This commit is contained in:
Pasi Kallinen
2016-02-05 17:23:22 +02:00
parent 00935a11c8
commit 0ca477486d
4 changed files with 19 additions and 18 deletions

View File

@@ -2457,11 +2457,7 @@ create_particular()
}
if (saddled && can_saddle(mtmp) && !which_armor(mtmp, W_SADDLE)) {
struct obj *otmp = mksobj(SADDLE, TRUE, FALSE);
(void) mpickobj(mtmp, otmp);
mtmp->misc_worn_check |= W_SADDLE;
otmp->owornmask = W_SADDLE;
otmp->leashmon = mtmp->m_id;
update_mon_intrinsics(mtmp, otmp, TRUE, FALSE);
put_saddle_on_mon(otmp, mtmp);
}
if (invisible)
mon_set_minvis(mtmp);