From: nethack.rankin Date: Thu, 23 Oct 2003 07:41:24 +0000 (+0000) Subject: charging tweak X-Git-Tag: MOVE2GIT~1649 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95d01c00d0c4e88cfe86954dc117e3abf2184aa8;p=nethack 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. --- diff --git a/src/read.c b/src/read.c index f324b2d71..9c9499c14 100644 --- a/src/read.c +++ b/src/read.c @@ -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