Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You will be misunderstood by everyone.


interests / rec.games.roguelike.nethack / [slashem] Weight calculation bug

SubjectAuthor
o [slashem] Weight calculation bugJanis Papanagnou

1
[slashem] Weight calculation bug

<sc1s2d$jac$1@news-1.m-online.net>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=1068&group=rec.games.roguelike.nethack#1068

  copy link   Newsgroups: rec.games.roguelike.nethack
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.space.net!news.m-online.net!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: rec.games.roguelike.nethack
Subject: [slashem] Weight calculation bug
Date: Tue, 6 Jul 2021 17:15:25 +0200
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 22
Message-ID: <sc1s2d$jac$1@news-1.m-online.net>
NNTP-Posting-Host: 2001:a61:241e:cc01:3075:34db:f081:d85a
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: news-1.m-online.net 1625584525 19788 2001:a61:241e:cc01:3075:34db:f081:d85a (6 Jul 2021 15:15:25 GMT)
X-Complaints-To: news@news-1.m-online.net
NNTP-Posting-Date: Tue, 6 Jul 2021 15:15:25 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
X-Mozilla-News-Host: news://news.m-online.net:119
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Tue, 6 Jul 2021 15:15 UTC

A scenery at the Castle; soldiers of different grades throw frag
grenades at me, I kill them and their bodies with their remains
are piled up. One heap that I inspected more closely had a couple
stacks of frag grenades as shown in the left column (with their
weight displayed in braces)

a - 14 frag grenades {400} a - 13 frag grenades {325}
f - 11 frag grenades {525} f - 10 frag grenades {250}
j - 2 frag grenades {175} j - a frag grenade {25}

These weights are not not correct, though. A single frag grenade has
a weight of {25}. If I pick up one item from any of the three stacks
that value gets corrected. And after having picked up an item from
each stack all values are okay (as depicted in the right column).

If I pick up a stack of miscalculated frag grenades (I tested that
with 3 frag grenades {100}) my inventory weight gets also incremented
by that wrong value (and dropping these will correct my inventory
weight but not the weight of the dropped grenades).

Janis

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor