]> granicus.if.org Git - nethack/commitdiff
quivering coins
authorcohrs <cohrs>
Sun, 14 Sep 2003 00:01:35 +0000 (00:01 +0000)
committercohrs <cohrs>
Sun, 14 Sep 2003 00:01:35 +0000 (00:01 +0000)
A while back, I delayed applying this patch after a discussion about
quivering coins, because I didn't want to change the behavior of GOLDOBJ
vs non-GOLDOBJ games.  I'm tired of seeing this diff in my tree, and I
recall there was some sentiment that I should have checked it in, so I'm
adding the feature in the trunk.

doc/fixes35.0
src/wield.c

index d27d17433f66143e2af3d517bac12fcab9cad7ed..70c58ed427bfc09f6265d4b7407b9e71ff2f007f 100644 (file)
@@ -29,6 +29,7 @@ class genocide recognizes species name as an example of the class to
        genocide (Martin Snyder)
 internals: use Is_box rather than explicitly checking what it checks
 fix some unreachable messages (either make then reachable or remove them)
+can quiver coins when GOLDOBJ is defined
 
 
 Platform- and/or Interface-Specific Fixes
index 04231166a6e4cef62e775da41f0f1b21cbc6ddb3..d261960d6cd5df8fbb80db5233680adb2691ef4d 100644 (file)
@@ -224,10 +224,17 @@ register struct obj *obj;
 
 static NEARDATA const char wield_objs[] =
        { ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, TOOL_CLASS, 0 };
+#ifdef GOLDOBJ
+static NEARDATA const char ready_objs[] =
+       { COIN_CLASS, ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, 0 };
+static NEARDATA const char bullets[] = /* (note: different from dothrow.c) */
+       { COIN_CLASS, ALL_CLASSES, ALLOW_NONE, GEM_CLASS, WEAPON_CLASS, 0 };
+#else
 static NEARDATA const char ready_objs[] =
        { ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, 0 };
 static NEARDATA const char bullets[] = /* (note: different from dothrow.c) */
        { ALL_CLASSES, ALLOW_NONE, GEM_CLASS, WEAPON_CLASS, 0 };
+#endif
 
 int
 dowield()