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:10 +02:00
parent 04756b5d34
commit a1d5464fa7
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -103,3 +103,7 @@ des.monster({ id = "quasit", x=32, y=00, peaceful=0 })
des.monster({ id = "quasit", x=34, y=00, peaceful=0 }) des.monster({ id = "quasit", x=34, y=00, peaceful=0 })
des.monster({ id = "quasit", x=36, y=00, peaceful=0 }) des.monster({ id = "quasit", x=36, y=00, peaceful=0 })
-- Some warhorses
for i = 1, 2 + nh.rn2(3) do
des.monster({ id = "warhorse", peaceful = 1, inventory = function() if percent(50) then des.object("saddle"); end end });
end
+1
View File
@@ -787,6 +787,7 @@ martial arts users, sasquatches, and heroes wearing kicking boots can
knights get no caitiff penalty against undead knights get no caitiff penalty against undead
candy bars are bright blue in text mode candy bars are bright blue in text mode
towels weigh more than blindfolds towels weigh more than blindfolds
knight quest home level contains some saddled warhorses
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
+4 -1
View File
@@ -2198,7 +2198,10 @@ create_object(object* o, struct mkroom* croom)
; /* ['otmp' remains on floor] */ ; /* ['otmp' remains on floor] */
} else { } else {
remove_object(otmp); 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 { } else {
struct obj *cobj = container_obj[container_idx - 1]; struct obj *cobj = container_obj[container_idx - 1];