Knight quest home level has some saddled warhorses

Also, when creating a saddle in a monster inventory in special
level lua code, automatically saddle the monster, if possible.
This commit is contained in:
Pasi Kallinen
2022-02-19 11:51:06 +02:00
parent 04756b5d34
commit a1d5464fa7
3 changed files with 9 additions and 1 deletions

View File

@@ -2198,7 +2198,10 @@ create_object(object* o, struct mkroom* croom)
; /* ['otmp' remains on floor] */
} else {
remove_object(otmp);
(void) mpickobj(invent_carrying_monster, otmp);
if (otmp->otyp == SADDLE)
put_saddle_on_mon(otmp, invent_carrying_monster);
else
(void) mpickobj(invent_carrying_monster, otmp);
}
} else {
struct obj *cobj = container_obj[container_idx - 1];