Files
nethack/doc
nethack.rankin d592b9c4ae sokoban completion (trunk only)
Something I've had in mind for a long time and finally gotten around
to implementing:  when you fill in the last pit or hole of a sokoban level,
it's considered to be completed so luck penalties for unsokobanish things
(breaking a boulder, dropping everything and squeezing onto a boulder's
spot, reading a scroll of earth) stop being assessed and most Sokoban-
specific movement restrictions (against pushing boulders diagonally,
squeezing diagonally between boulders, floating over a pit or hole without
falling in, digging of new holes by monsters) are lifted.  Teleporting,
level teleporting, and phasing through walls are still prohibited when in
the sokoban branch of the dungeon.  (Keeping the non-phasing one in place
prevents taking a shortcut to the final prize in order to bypass the
treasure zoo monsters.)

     This adds level.flags.sokoban_rules, defines Sokoban macro to access
it, and replaces most In_sokoban(&u.uz) tests to check it instead.  It
gets set when a sokoban level is pre-mapped at the end of level creation,
and if it is set then whenever a trap is deleted, the flag gets cleared
if there are no more pits or holes present on the level.
2011-08-30 22:13:27 +00:00
..
2009-05-06 10:45:32 +00:00
2002-01-05 21:05:47 +00:00
2009-05-06 10:45:32 +00:00
2002-01-05 21:05:47 +00:00
2002-01-11 18:02:22 +00:00
2003-05-11 15:09:24 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2003-05-11 13:40:01 +00:00
2003-08-26 15:11:58 +00:00
2011-08-30 22:13:27 +00:00
2011-05-12 13:06:13 +00:00
2011-04-25 03:29:49 +00:00
2006-09-23 23:23:48 +00:00
2009-05-06 10:45:32 +00:00
2002-01-05 21:05:47 +00:00
2010-05-01 23:10:22 +00:00
2009-05-06 10:45:32 +00:00
2004-03-27 05:07:17 +00:00
2009-05-06 10:45:32 +00:00
2002-01-05 21:05:47 +00:00