Tom's Hardware > Forum > Games General > Games General Discussions > YANI: attributes, show godstate

YANI: attributes, show godstate

Forum Games General : Games General Discussions - YANI: attributes, show godstate

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.games.roguelike.nethack (More info?)

 

Hi All,

just a simple YANI:

when showing final status, indicate not only whether your god was angry
with you, but whether or not you could safely pray. Just to rub it in.

LilWizard died of starvation. attributes: "You could safely pray"


Keith
--
Keith Davies "Trying to sway him from his current kook-
keith.davies@kjdavies.org rant with facts is like trying to create
keith.davies@gmail.com a vacuum in a room by pushing the air
http://www.kjdavies.org/ out with your hands." -- Matt Frisch

Sponsored Links
Register or log in to remove.

Archived from groups: rec.games.roguelike.nethack (More info?)

 

Keith Davies <keith.davies@kjdavies.org> writes:
> Hi All,
>
> just a simple YANI:
>
> when showing final status, indicate not only whether your god was angry
> with you, but whether or not you could safely pray. Just to rub it in.
>
> LilWizard died of starvation. attributes: "You could safely pray"

The relevant source comment:

/*
* We need to suppress this when the game is over, because death
* can change the value calculated by can_pray(), potentially
* resulting in a false claim that you could have prayed safely.
*/

There's code in place that would print the message (actually "You
could have safely prayed" ), but it's defined out for that reason.

--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "At the sushi counter of life, you must use the chopsticks of ambition :
: to grab the sashimi of accomplishment or you will be left with the :
: wasabi of disappointment." -- Dan Shiovitz :

Reply to Anonymous

Archived from groups: rec.games.roguelike.nethack (More info?)

 

Dylan O'Donnell <psmithnews@spod-central.org> wrote:
> Keith Davies <keith.davies@kjdavies.org> writes:
>> Hi All,
>>
>> just a simple YANI:
>>
>> when showing final status, indicate not only whether your god was angry
>> with you, but whether or not you could safely pray. Just to rub it in.
>>
>> LilWizard died of starvation. attributes: "You could safely pray"
>
> The relevant source comment:
>
> /*
> * We need to suppress this when the game is over, because death
> * can change the value calculated by can_pray(), potentially
> * resulting in a false claim that you could have prayed safely.
> */
>
> There's code in place that would print the message (actually "You
> could have safely prayed" ), but it's defined out for that reason.

Ah, so it used to be there, but didn't work quite right then.

It wouldn't be right to be told 'you could have prayed' when you
couldn't, so removing it was the right thing, if it couldn't be made to
work correctly.


Keith
--
Keith Davies "Trying to sway him from his current kook-
keith.davies@kjdavies.org rant with facts is like trying to create
keith.davies@gmail.com a vacuum in a room by pushing the air
http://www.kjdavies.org/ out with your hands." -- Matt Frisch

Reply to Anonymous

Archived from groups: rec.games.roguelike.nethack (More info?)

 

Keith Davies <keith.davies@kjdavies.org> writes:
> Dylan O'Donnell <psmithnews@spod-central.org> wrote:

[prayer ability in final enlightenment]

> > The relevant source comment:
> >
> > /*
> > * We need to suppress this when the game is over, because death
> > * can change the value calculated by can_pray(), potentially
> > * resulting in a false claim that you could have prayed safely.
> > */
> >
> > There's code in place that would print the message (actually "You
> > could have safely prayed" ), but it's defined out for that reason.
>
> Ah, so it used to be there, but didn't work quite right then.

No, it's never been live code in a release version. It first appears
already defined out in 3.2.0, when the message was added to in-game
enlightenment.

--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "At the sushi counter of life, you must use the chopsticks of ambition :
: to grab the sashimi of accomplishment or you will be left with the :
: wasabi of disappointment." -- Dan Shiovitz :

Reply to Anonymous

Archived from groups: rec.games.roguelike.nethack (More info?)

 

Dylan O'Donnell <psmithnews@spod-central.org> wrote:
> Keith Davies <keith.davies@kjdavies.org> writes:
>> Dylan O'Donnell <psmithnews@spod-central.org> wrote:
>
> [prayer ability in final enlightenment]
>
>> > The relevant source comment:
>> >
>> > /*
>> > * We need to suppress this when the game is over, because death
>> > * can change the value calculated by can_pray(), potentially
>> > * resulting in a false claim that you could have prayed safely.
>> > */
>> >
>> > There's code in place that would print the message (actually "You
>> > could have safely prayed" ), but it's defined out for that reason.
>>
>> Ah, so it used to be there, but didn't work quite right then.
>
> No, it's never been live code in a release version. It first appears
> already defined out in 3.2.0, when the message was added to in-game
> enlightenment.

'code is present but not used in this case' is what I was referring to.
Looking at the wording of the comment it seems someone thought of this,
it got put in, and somewhere in dev/test they realized it wouldn't work
correctly and decided to suppress the message before it went live.


Keith
--
Keith Davies "Trying to sway him from his current kook-
keith.davies@kjdavies.org rant with facts is like trying to create
keith.davies@gmail.com a vacuum in a room by pushing the air
http://www.kjdavies.org/ out with your hands." -- Matt Frisch

Reply to Anonymous
Tom's Hardware > Forum > Games General > Games General Discussions > YANI: attributes, show godstate
Go to:

There are 1204 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them