charging tweak

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.
This commit is contained in:
nethack.rankin
2003-10-23 07:41:24 +00:00
parent 5b9c03729c
commit 95d01c00d0
+3 -3
View 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. */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -318,7 +318,7 @@ int curse_bless;
else else
pline(nothing_happens); pline(nothing_happens);
} else if (is_blessed) { } else if (is_blessed) {
n = rn1(10,16); /* 10..25 */ n = rn1(16,15); /* 15..30 */
if (obj->spe + n <= 50) if (obj->spe + n <= 50)
obj->spe = 50; obj->spe = 50;
else if (obj->spe + n <= 75) else if (obj->spe + n <= 75)
@@ -332,7 +332,7 @@ int curse_bless;
} }
p_glow2(obj, NH_BLUE); p_glow2(obj, NH_BLUE);
} else { } else {
n = rn1(5,10); /* 5..15 */ n = rn1(11,10); /* 10..20 */
if (obj->spe + n <= 50) if (obj->spe + n <= 50)
obj->spe = 50; obj->spe = 50;
else { else {