]> granicus.if.org Git - nethack/commitdiff
charging tweak
authornethack.rankin <nethack.rankin>
Thu, 23 Oct 2003 07:41:24 +0000 (07:41 +0000)
committernethack.rankin <nethack.rankin>
Thu, 23 Oct 2003 07:41:24 +0000 (07:41 +0000)
     Some newsgroup discussion recently pointed out that source comments
for scrolls of charging didn't match the actual charge increase performed
by that magic.  This bumps the values a little bit
 (uncursed: comment said 5 to 15, actual amount was 10 to 14, now 10 to 20;
  blessed: comment said 10 to 25, actual amount was 16 to 25, now 15 to 30)
and adjusts the comments to match the code.

src/read.c

index f324b2d719429b245d7c6f114c826b80237c4e33..9c9499c1455406e3cdd23b7bf2d16d130fdb481c 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)read.c     3.4     2003/01/09      */
+/*     SCCS Id: @(#)read.c     3.4     2003/10/22      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -318,13 +318,13 @@ int curse_bless;
                    else
                        pline(nothing_happens);
                } else if (is_blessed) {
-                   n = rn1(10,16);             /* 10..25 */
+                   n = rn1(16,15);             /* 15..30 */
                    if (obj->spe + n <= 50)
                        obj->spe = 50;
                    else if (obj->spe + n <= 75)
                        obj->spe = 75;
                    else {
-                       int chrg = (int)obj->spe;
+                       int chrg = (int)obj->spe;
                        if ((chrg + n) > 127)
                                obj->spe = 127;
                        else
@@ -332,11 +332,11 @@ int curse_bless;
                    }
                    p_glow2(obj, NH_BLUE);
                } else {
-                   n = rn1(5,10);              /* 5..15 */
+                   n = rn1(11,10);             /* 10..20 */
                    if (obj->spe + n <= 50)
                        obj->spe = 50;
                    else {
-                       int chrg = (int)obj->spe;
+                       int chrg = (int)obj->spe;
                        if ((chrg + n) > 127)
                                obj->spe = 127;
                        else