]> granicus.if.org Git - nethack/commitdiff
touchstone bit
authorcohrs <cohrs>
Tue, 5 Feb 2002 04:22:23 +0000 (04:22 +0000)
committercohrs <cohrs>
Tue, 5 Feb 2002 04:22:23 +0000 (04:22 +0000)
src/apply.c

index 9d5377e81f02173779ba56490565972930f332f3..e7b20d4d38709063009d667131028893ae149608 100644 (file)
@@ -1813,7 +1813,7 @@ struct obj *otmp;
        }
        material = objects[obj->otyp].oc_material;
 
-       if (otmp->cursed && obj->oclass == GEM_CLASS && rnd(5) == 1) {
+       if (otmp->cursed && obj->oclass == GEM_CLASS && !rn2(5)) {
            pline(
                (Blind ? "You feel something shatter" :
                 (Hallucination ? "Oh, wow, look at the pretty shards." :