From 95d01c00d0c4e88cfe86954dc117e3abf2184aa8 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 23 Oct 2003 07:41:24 +0000 Subject: [PATCH] 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. --- src/read.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.40.0