DynaHack icon indicating copy to clipboard operation
DynaHack copied to clipboard

corpses rot way too fast sometimes

Open jpka opened this issue 10 years ago • 3 comments

a newt corpse consumed ~3 turns after killing it was rotten (on current "unnethack" branch code)

jpka avatar Aug 18 '15 01:08 jpka

Can you provide details?

  • What was the full object name of the corpse, e.g. "a rotten newt corpse"?
  • What was the exact log of messages (copy and paste, or screenshot)?

What you're seeing may be similar to this report on /r/nethack, which also attributes this behavior to DynaHack but is in fact regular NetHack behavior:

It's vanilla behaviour, which is also an actual bug (a set of parentheses in the wrong place). IIRC it was intended to happen to fresh corpses but not fresh permafood, or vice versa.

UnNetHack fixes the bug in question to match the intention, so you're still going to get random rotten food, but only in one category. I'm not sure if DynaHack imported the fix from UnNetHack; I would expect it to (being originally intended as a NitroHack/UnNetHack merge), but perhaps it didn't.

-- ais523

I don't remember UnNetHack amending this, by the way.

See also https://nethackwiki.com/wiki/Comestible#Rotten_food

tung avatar Aug 18 '15 07:08 tung

You imported UnNetHack's fix in ab81299. But that code path doesn't affect corpses, only other food items.

You have to look at eatcorpse() for what can happen with corpses.

bhaak avatar Aug 18 '15 10:08 bhaak

It wasn't named rotten but the eating message claimed it was rotten. Also I got blinded as a result. I didn't take a screenshot sorry, but it has happened multiple times (consuming relatively fresh corpses that don't say rotten yielding log messages claiming they were). Something along the lines of "bleggh, that was rotten". Even if it is a legacy bug I don't see why is this bug report out of place here, don't you do bugfixes in this variant?

jpka avatar Aug 18 '15 20:08 jpka