]> granicus.if.org Git - nethack/commitdiff
melon bit and comment
authornethack.allison <nethack.allison>
Sun, 14 Jul 2002 13:37:48 +0000 (13:37 +0000)
committernethack.allison <nethack.allison>
Sun, 14 Jul 2002 13:37:48 +0000 (13:37 +0000)
Melons should break when thrown.
Add objects.c comment about "gray stones"

src/dothrow.c
src/objects.c

index 0f6882e5c971c826a18f49a3af0c0af76fdc2cf2..391e606cb5caeb0590da7347dd754b205af152e8 100644 (file)
@@ -1570,6 +1570,7 @@ struct obj *obj;
                case POT_WATER:         /* really, all potions */
                case EGG:
                case CREAM_PIE:
+               case MELON:
                case ACID_VENOM:
                case BLINDING_VENOM:
                        return 1;
@@ -1607,6 +1608,7 @@ boolean in_view;
                                (obj->quan==1) ? "s" : "", to_pieces);
                        break;
                case EGG:
+               case MELON:
                        pline("Splat!");
                        break;
                case CREAM_PIE:
index 48b78588982c007918b9b181e1e1fd2d29d3457b..54b0e8aec8fda2be4445be05801ad1913695bd73 100644 (file)
@@ -921,6 +921,10 @@ GEM("worthless piece of black glass",  "black",  76, 1, 0, 6, 5, GLASS, CLR_BLAC
 GEM("worthless piece of green glass", "green",   77, 1, 0, 6, 5, GLASS, CLR_GREEN),
 GEM("worthless piece of violet glass", "violet", 77, 1, 0, 6, 5, GLASS, CLR_MAGENTA),
 
+/* Placement note: there is a wishable subrange for
+ * "gray stones" in the o_ranges[] array in objnam.c
+ * that is currently everything between luckstones and flint (inclusive).
+ */
 ROCK("luckstone", "gray",      0, 10,  10, 60, 3, 3, 1, 10, 7, MINERAL, CLR_GRAY),
 ROCK("loadstone", "gray",      0, 10, 500,  1, 3, 3, 1, 10, 6, MINERAL, CLR_GRAY),
 ROCK("touchstone", "gray",     0,  8,  10, 45, 3, 3, 1, 10, 6, MINERAL, CLR_GRAY),