Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

I love mankind ... It's people I hate. -- Schulz


interests / rec.games.roguelike.nethack / Re: [slashem] Donwgrading objects (and a bug?)

SubjectAuthor
* [slashem] Donwgrading objects (and a bug?)Janis Papanagnou
`* [slashem] Donwgrading objects (and a bug?)Pat Rankin
 `- [slashem] Donwgrading objects (and a bug?)Janis Papanagnou

1
[slashem] Donwgrading objects (and a bug?)

<t75do5$q8n$1@dont-email.me>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=2572&group=rec.games.roguelike.nethack#2572

  copy link   Newsgroups: rec.games.roguelike.nethack
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou@hotmail.com (Janis Papanagnou)
Newsgroups: rec.games.roguelike.nethack
Subject: [slashem] Donwgrading objects (and a bug?)
Date: Tue, 31 May 2022 17:54:45 +0200
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <t75do5$q8n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 May 2022 15:54:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d3f3ef44a68d74761960abdbc779468e";
logging-data="26903"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19r2rzjtN0z/zPbWwoVgh4+"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:1OOgIt5JMq+DEi3Tgh9R3lR2wio=
X-Mozilla-News-Host: news://news.eternal-september.org:119
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Tue, 31 May 2022 15:54 UTC

In Slashem it is possible to upgrade some objects to a better version
(e.g. tin whistle -> magic whistle) using a potion of gain level.

Just now I observed that it's also possible to downgrade objects by
dipping it into a potion of amnesia or into the Castle's moat "lethe
water". Some observations...

Randomly found gauntlets of defense (-1) won't lose the enchantment
(valid for all artifacts, it seems from inspecting the source code).
A ring with positive enchantment will lose it, but not one with a
negative enchantment. (Strange.)
You can uncurse most cursed items by dipping into amnesia water.
Some items change (similar to upgrading); dipping a cursed health
stone will not only uncurse it but also morph to a flint stone.
That seems to open another way to get rid of loadstones; they not
only uncurse (as the source code shows) but also morph to flint.

And here I suspect a bug in the code of function downgrade()...

downgrade_obj(obj, nomagic, used)
...
obj->owt = weight(obj);

where this function is called in context of e.g.

if (amnesia && (obj->otyp == LUCKSTONE ||
obj->otyp == LOADSTONE || obj->otyp == HEALTHSTONE ||
obj->otyp == TOUCHSTONE))
downgrade_obj(obj, FLINT, &used);

The "new" weight seems to be taken from the original object instead
of the new "nomagic" item. (Or am I missing something?)

Janis

Re: [slashem] Donwgrading objects (and a bug?)

<a058a976-404e-443b-a39b-05b8bc130076n@googlegroups.com>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=2573&group=rec.games.roguelike.nethack#2573

  copy link   Newsgroups: rec.games.roguelike.nethack
X-Received: by 2002:a37:8d46:0:b0:6a6:48c7:8632 with SMTP id p67-20020a378d46000000b006a648c78632mr5459176qkd.633.1654020040338;
Tue, 31 May 2022 11:00:40 -0700 (PDT)
X-Received: by 2002:ac8:5cd2:0:b0:2fb:5e1e:6d67 with SMTP id
s18-20020ac85cd2000000b002fb5e1e6d67mr26105745qta.639.1654020040169; Tue, 31
May 2022 11:00:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.roguelike.nethack
Date: Tue, 31 May 2022 11:00:39 -0700 (PDT)
In-Reply-To: <t75do5$q8n$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=75.51.95.152; posting-account=PWiXPAoAAABrA15ZgKdYDhP2ItsYPeoJ
NNTP-Posting-Host: 75.51.95.152
References: <t75do5$q8n$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a058a976-404e-443b-a39b-05b8bc130076n@googlegroups.com>
Subject: Re: [slashem] Donwgrading objects (and a bug?)
From: r.pat.rankin@gmail.com (Pat Rankin)
Injection-Date: Tue, 31 May 2022 18:00:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1398
 by: Pat Rankin - Tue, 31 May 2022 18:00 UTC

On Tuesday, May 31, 2022 at 8:54:48 AM UTC-7, Janis wrote:
> The "new" weight seems to be taken from the original object instead
> of the new "nomagic" item. (Or am I missing something?)

There's only one object, and the weight is calculated after setting
that object's otyp field to the new type.

Re: [slashem] Donwgrading objects (and a bug?)

<t75ldm$n71$1@dont-email.me>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=2574&group=rec.games.roguelike.nethack#2574

  copy link   Newsgroups: rec.games.roguelike.nethack
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou@hotmail.com (Janis Papanagnou)
Newsgroups: rec.games.roguelike.nethack
Subject: Re: [slashem] Donwgrading objects (and a bug?)
Date: Tue, 31 May 2022 20:05:42 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <t75ldm$n71$1@dont-email.me>
References: <t75do5$q8n$1@dont-email.me>
<a058a976-404e-443b-a39b-05b8bc130076n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 May 2022 18:05:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d3f3ef44a68d74761960abdbc779468e";
logging-data="23777"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HMw3fZL44uyis6kdG8SlV"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:0yqJmOwJiLWI3n/aKjnLG4kUrRQ=
In-Reply-To: <a058a976-404e-443b-a39b-05b8bc130076n@googlegroups.com>
 by: Janis Papanagnou - Tue, 31 May 2022 18:05 UTC

On 31.05.2022 20:00, Pat Rankin wrote:
> On Tuesday, May 31, 2022 at 8:54:48 AM UTC-7, Janis wrote:
>> The "new" weight seems to be taken from the original object instead
>> of the new "nomagic" item. (Or am I missing something?)
>
> There's only one object, and the weight is calculated after setting
> that object's otyp field to the new type.

Ah, yes, you're right. (Need more coffee.) Thanks.

Janis


interests / rec.games.roguelike.nethack / Re: [slashem] Donwgrading objects (and a bug?)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor