]> granicus.if.org Git - nethack/commitdiff
figurine/familiar starting inventory
authornethack.rankin <nethack.rankin>
Fri, 16 Mar 2007 03:09:52 +0000 (03:09 +0000)
committernethack.rankin <nethack.rankin>
Fri, 16 Mar 2007 03:09:52 +0000 (03:09 +0000)
     While testing the figurine timer patch, I observed
The goblin wields a crude dagger.
You see a goblin drop out of your pack!

Rather than try to get the sequencing right, just prevent monsters made
by figurine activation or by the create familiar spell start without any
inventory.  This will have a side effect of making wishes for a blessed
figurine of an archon be less powerful, because the subsequent pet A won't
come equipped with a shield of reflection and an artifact--or at least
rustproof--long sword anymore.

doc/fixes34.4
src/dog.c

index 8cf3e37c6814f0283fd3e6fa1b8424e6b3aebc96..8c66fc18a4726a0e91642e14bb0570ddd66107bf 100644 (file)
@@ -340,6 +340,7 @@ towel equipped in weapon, alternate weapon, or quiver slot can be applied
 lit candle or potion of oil which burned out while equipped would leave stale
        weapon/alternate-weapon/quiver pointer that could cause panic or crash
 wielded/worn figurine which auto-transformed had same stale pointer bug
+familiars are now created without any starting inventory
 
 
 Platform- and/or Interface-Specific Fixes
index f1f810b1ac8ed0f4f0855a51994ca81505df1f30..bdcd0be92e61dffcf3bfeafd3da62b5c474cfa1c 100644 (file)
--- a/src/dog.c
+++ b/src/dog.c
@@ -100,7 +100,7 @@ boolean quietly;
                }
            }
 
-           mtmp = makemon(pm, x, y, MM_EDOG|MM_IGNOREWATER);
+           mtmp = makemon(pm, x, y, MM_EDOG|MM_IGNOREWATER|NO_MINVENT);
            if (otmp && !mtmp) { /* monster was genocided or square occupied */
                if (!quietly)
                   pline_The("figurine writhes and then shatters into pieces!");