From: Pasi Kallinen Date: Sun, 19 Sep 2021 17:52:01 +0000 (+0300) Subject: Izchak occasionally stocks wands/scrolls/spellbooks of light X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d3e237ffc6e39bf53ae006cd6d610973f8ffd77;p=nethack Izchak occasionally stocks wands/scrolls/spellbooks of light This comes from xNetHack by copperwater --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 5ce9ff879..bad9788b1 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -618,6 +618,7 @@ similar "The ogre lord yanks Cleaver from your corpses!" due to caching the obuf used for each item so that the same one will be reused for the next item, to avoid churning through the whole pool of obufs gas clouds are a little random in how they spread out from a point +Izchak occasionally stocks wands/scrolls/spellbooks of light Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/include/mkroom.h b/include/mkroom.h index 8f184ab67..e54d6f5b2 100644 --- a/include/mkroom.h +++ b/include/mkroom.h @@ -35,7 +35,7 @@ struct shclass { struct itp { int iprob; /* probability of an item type */ int itype; /* item type: if >=0 a class, if < 0 a specific item */ - } iprobs[6]; + } iprobs[9]; const char *const *shknms; /* list of shopkeeper names for this type */ }; diff --git a/src/shknam.c b/src/shknam.c index 2b151f09f..97dcc7a45 100644 --- a/src/shknam.c +++ b/src/shknam.c @@ -330,11 +330,14 @@ const struct shclass shtypes[] = { 0, D_SHOP, { { 30, -WAX_CANDLE }, - { 48, -TALLOW_CANDLE }, + { 44, -TALLOW_CANDLE }, { 5, -BRASS_LANTERN }, { 9, -OIL_LAMP }, { 3, -MAGIC_LAMP }, - { 5, -POT_OIL } }, + { 5, -POT_OIL }, + { 2, -WAN_LIGHT }, + { 1, -SCR_LIGHT }, + { 1, -SPE_LIGHT } }, shklight }, /* sentinel */ { (char *) 0,