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

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. */
/* 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