Re: Died without a "You die" message
- From: "Gorice" <gorice@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Jan 2009 20:00:50 -0000
"Paul E Collins" <find_my_real_address@xxxxxxx> wrote in message
news:75SdnTxAjbU3UMLUnZ2dnUVZ8tfinZ2d@xxxxxxxxx
Here's a recent death where I wasn't explicitly told "You die". Is it a
bug?
---
As you read the scroll, it disappears. The scroll erupts in a tower of
flame! Your spellbook of force bolt catches fire and burns! Your potion of
sickness boils and explodes! Your potion of confusion boils and explodes!
You feel somewhat dizzy. Your potion of paralysis boils and explodes!
Something seems to be holding you. DYWYPI?
---
Eq.
After a quick look at the code I think this probably is a bug, or an
oversight at least - I assume from the above that you were killed by
reading a scroll of fire.
In most places where the hero dies of something [e.g. done_in_by()
in end.c or losehp() in hack.c] the routine issues a You("die...") or
similar message before calling done() in end.c to handle DYWYPI
and other end of game accounting.
But, in explode() in explode.c - which seems to handle the effects
of scrolls of fire - if you survive damage from exploding items in
your inventory then you'll take some damage from the fire itself. If
this last damage kills you, it appears that explode() formulates a killer
message for the record then calls done() but doesn't first issue a
You("die...") message [lines 329-363 in explode.c], so you don't
get told that you died in the message window.
It may be that this has been overlooked because if damage from
an exploding item in your inventory kills you first, as will often be
the case, then losehp() handles your death before you get to the
code lines mentioned above and this does issue a You("die...")
message before calling done.
I haven't checked to see if this is included in the description of any
known bug but the fix would be simply to insert:
You("die...");
or similar immediately before line 359 in explode.c:
/* Known BUG: BURNING suppresses corpse in bones data,
[But I note this is a comment about a known bug to do with
death by burning, so there may be complications I'm missing!]
G
.
- References:
- Died without a "You die" message
- From: Paul E Collins
- Died without a "You die" message
- Prev by Date: Re: Improving the portal search (was Re: Nethack, Neohack)
- Next by Date: Re: Nethack, Neohack
- Previous by thread: Died without a "You die" message
- Next by thread: Full screen help?
- Index(es):
Relevant Pages
|