Files
nethack/src
nethack.rankin bbd70e7c88 life-saving bits (trunk only)
A couple of things noticed when looking at the death-by-brainlessness
code.  The 3.4.3 code ran a loop while life-saving was keeping the hero
alive, which would work if someone added other sources of life-saving than
the amulet but not if they added some form which didn't get used up when
it kicked in.  Post-3.4.3, the dev code eliminated the loop but was no
longer guarding against additional forms of life-saving.  This attempts to
clear the relevant field once any form of life-saving takes effect (for
brainlessness).  It's not perfect since someone could change `Lifesaved'
to look at something other than the hero's properties, but at least it
still avoids the risk of getting stuck in a loop if someone makes a really
bad customization.

     Also, make life-saving use min(2*level,10) instead of flat 10 for
amulet or 8*level for explore/wizard survival when it saves someone whose
max HP have been clobbered somehow.  Other places assume that 1 HP per
level is the lowest the hero will have; saved-life gives a modest bit more.

     Lastly, some post-3.4.3 code to make ghosts/shades immune to brain
sucking was using mon_nam() to start a sentence; Monnam() is needed there.
2007-04-20 02:23:33 +00:00
..
2002-01-18 02:50:06 +00:00
2007-03-15 05:24:45 +00:00
2006-07-08 03:22:40 +00:00
2007-03-20 19:21:38 +00:00
2007-03-02 03:28:25 +00:00
2007-02-22 16:19:04 +00:00
2007-03-18 03:26:43 +00:00
2007-02-20 01:45:19 +00:00
2007-03-03 05:07:53 +00:00
2007-01-27 04:33:16 +00:00
2007-02-10 17:30:24 +00:00
2007-02-04 05:31:24 +00:00
2007-03-16 03:09:52 +00:00
2007-04-20 02:23:33 +00:00
2007-04-20 02:23:33 +00:00
2006-05-11 03:26:55 +00:00
2007-03-06 03:00:05 +00:00
2006-07-09 16:25:39 +00:00
2007-02-20 02:32:50 +00:00
2006-12-15 02:36:58 +00:00
2006-11-10 05:13:57 +00:00
2007-04-03 03:46:14 +00:00
2007-02-10 04:19:41 +00:00
2006-09-21 01:46:15 +00:00
2006-12-15 02:36:58 +00:00
2007-03-24 03:57:50 +00:00
2006-10-03 03:32:26 +00:00
2005-12-15 04:52:43 +00:00
2007-03-18 02:46:58 +00:00
2007-04-01 04:33:50 +00:00
2007-02-22 05:16:58 +00:00
2007-01-07 05:11:09 +00:00
2007-03-06 03:00:05 +00:00
2007-04-20 01:43:42 +00:00
2006-09-21 15:03:48 +00:00
2007-01-16 04:54:38 +00:00
2007-03-22 04:23:55 +00:00
2006-12-01 07:38:18 +00:00
2007-03-24 04:45:24 +00:00
2006-07-30 20:08:57 +00:00
2006-12-07 05:27:18 +00:00
2007-04-17 03:43:17 +00:00
2006-12-15 02:36:58 +00:00
2006-12-15 02:36:58 +00:00
2007-03-08 03:14:20 +00:00
2007-04-16 03:03:08 +00:00
2006-06-11 18:27:55 +00:00
2006-12-12 04:52:39 +00:00
2007-02-18 03:33:43 +00:00
2007-02-03 01:59:49 +00:00
2005-07-17 05:00:25 +00:00
2007-04-17 03:43:17 +00:00