Talk:Dungeon.def format

From NetHackWiki
Revision as of 15:39, 13 October 2007 by Kernigh (talk | contribs) (Question about dungeon.def: (10, 0) is the same range as (10, 1) when placing a level?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Does (10, 0) mean the same as (10, 1)? I think that (10, 0) is always 10. However, the code at dungeon.c#line728 seems to read: given (base, rand), put the level at rn1(base, rand), which I understand is base plus a random number from 0 to rand-1, so (10, 5) would be the range from 10 to 14, but (10, 1) would be the range from 10 to 10. It seems counterintuitive if (10, 1) is not a larger range than (10, 0) during random level placement. --Kernigh 15:39, 13 October 2007 (UTC)