Difference between revisions of "Town"

From NetHackWiki
Jump to navigation Jump to search
m (Town map: Needs a blank line before the block to be replaced)
Line 2: Line 2:
  
 
==Generation==
 
==Generation==
The Town branch can be accessed via an up staircase, and always appears on the level below the entrance to [[Sokoban]].
+
The Town branch can be accessed via an up staircase that always appears on the floor below the entrance to [[Sokoban]].
  
 
[[Shopkeeper]]s generated in the town area start with 1/4 the money of regular shopkeepers, due to this particular town being on the poor side.<ref>[https://github.com/UnNetHack/UnNetHack/blob/6.0.3-20210525-e2dafd6/src/shknam.c#L599 UnNetHack shknam.c, line 599]; [https://github.com/Soviet5lo/SlashTHEM/blob/e55b2b522cea66b463dd8a81d74f9b8ad7fa7bb3/src/shknam.c#L569 SlashTHEM shknam.c, line 569]</ref>
 
[[Shopkeeper]]s generated in the town area start with 1/4 the money of regular shopkeepers, due to this particular town being on the poor side.<ref>[https://github.com/UnNetHack/UnNetHack/blob/6.0.3-20210525-e2dafd6/src/shknam.c#L599 UnNetHack shknam.c, line 599]; [https://github.com/Soviet5lo/SlashTHEM/blob/e55b2b522cea66b463dd8a81d74f9b8ad7fa7bb3/src/shknam.c#L569 SlashTHEM shknam.c, line 569]</ref>
Line 15: Line 15:
 
In SlashTHEM, the branch has three floors:
 
In SlashTHEM, the branch has three floors:
  
* The first floor is a room-and-corridor filler level.
+
* The first floor is a room-and-corridors filler level.
 
* The second floor contains the actual town.
 
* The second floor contains the actual town.
* The third floor is a village-like area with a river running through it.
+
* The third floor is a village with a river running through it, derived from the Pleasant Valley level in [[Gehennom (Lethe patch)#The Pleasant Valley|the Lethe Patch's revised Gehennom]].<ref>[https://github.com/Soviet5lo/SlashTHEM/blob/v0.9.6/dat/village.des#L10 SlashTHEM village.des, line 10]</ref>
  
 
==Town map==
 
==Town map==
Line 79: Line 79:
  
 
In UnNetHack, four muggers, two sewer rats and a [[kitten]] are placed randomly around the town; as before, SlashTHEM also generates a pair of bandits.
 
In UnNetHack, four muggers, two sewer rats and a [[kitten]] are placed randomly around the town; as before, SlashTHEM also generates a pair of bandits.
 +
 +
==Village==
 +
<div class='ttyscreen'><replacecharsblock rules="ttymap">
 +
w=[[shallow water|{{blue|~}}]]
 +
 +
                                      -----------------
 +
  ....            ...T..T.            |...|...|...|...|              ....
 +
......    T....T..T......T.    .T....--.---.---.---.--.          ##..{..
 +
  ...    .....T.......T......T............................T.      ###  ...
 +
  #      .  T....T..T.....T....T.......T.........T.............  #
 +
  ##    .T....T.....T...T..T........T...............T............ ..
 +
  #  ....T.....T.....T......T...........T..............T...........
 +
....##.  ....T......T...T..T....................T.............T.......|---|
 +
....  .. T..  ...}}}}}}}}}}}}}}.....T......T.......................T.....|
 +
      ......  }}}}}}}}}}}}}}}}}}}}}}}.................T................|---|
 +
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}........................T..........|
 +
}}}}}}}}}}}}}}}}}}}..........}}}}}}}}}}}}}}.}....T.......T.............|---|
 +
}}}}}}}}}}}}}}}.................}}}}}}}}}}w}w}w}w}..................T......|
 +
  ---------------....................}}}}w}w}w}w}}w}.............T.....|---|
 +
  |.......|.....|........................}w}w}}}}w}w}w}....T...............|
 +
  |.......+.....+..........................}w}w}w}w}w}}................|---|
 +
  |.......|.....|----.......................}w}w}w}w}..T......T............|
 +
  |.......------|...|....................... }}}}}}}}  ............T...|---|
 +
  |...\...S.....S...|.        ...........    }}}}}}    ............
 +
  -------------------                          }}}}
 +
</replacecharsblock></div>
  
 
==References==
 
==References==

Revision as of 04:35, 18 September 2021

The Town is a branch that appears in UnNetHack and SlashTHEM. It pays homage to the Town found at the top levels of Angband.

Generation

The Town branch can be accessed via an up staircase that always appears on the floor below the entrance to Sokoban.

Shopkeepers generated in the town area start with 1/4 the money of regular shopkeepers, due to this particular town being on the poor side.[1]

UnNetHack

In UnNetHack, the branch consists of only two floors:

  • The first floor is a large, open filler level with three wide rivers, requiring a method of crossing water to reach the town.
  • The second floor is the actual town.

SlashTHEM

In SlashTHEM, the branch has three floors:

  • The first floor is a room-and-corridors filler level.
  • The second floor contains the actual town.
  • The third floor is a village with a river running through it, derived from the Pleasant Valley level in the Lethe Patch's revised Gehennom.[2]

Town map

The layout of the town and the generation of the shops within are relatively similar across variants - one primary difference is that SlashTHEM randomizes the placement of the stairs and shop doors, and has an additional upstair to the third floor. The town also has its own watch patrolling the area - both versions will generate four watchmen and three watch captains.

A sink appears in both possible layouts in order to prevent the game becoming unwinnable as a result of cursed sources of levitation (i.e., a ring or boots).

Town #1

------------------------------------------------------------------------------
|............................................................................|
|...........................................-----............................|
|...........................................|...|............................|
|.........---+---.........--------..........|...|....................{.......|
|.........|.....|.........|......|........tool shop..........................|
|........armor shop.......|......|..........--+--..........----..............|
|.........-------.........pet shop.........................|..+..............|
|.........................-+------.......................light shop..........|
|..........................................................----..............|
|.......................................{....................................|
|.........................>.....................----.........................|
|...............-+---........................music shop....#.................|
|..{............|...|.........-----.............|..|.............------......|
|............general shop.....|...+.............|..|.............|....+......|
|...............-----......weapon shop..........--+-............tin shop.....|
|.............................-----..............................------......|
|............................................................................|
------------------------------------------------------------------------------

On this map, only the general shop is guaranteed to appear - the other shops each have a 23 chance to generate. There are three fountains and one sink.

In UnNetHack, four muggers, two sewer rats and a little dog are placed randomly around the town; SlashTHEM adds a pair of bandits as well.

Town #2

------------------------------------------------------------------------------
|............................................................................|
|............................................................................|
|..................>........---+-............................................|
|...........................|...|............................................|
|......---+-----............|...|...........---+---.....#.....---------......|
|......|.......|..........weapon shop.......|.....|...........|pet shop......|
|.....armor shop............-----.........music shop..........+.......|......|
|......---------............................-------...........---------......|
|......................{.....................................................|
|.......................................................{....................|
|............-------...........--+---........................................|
|............|.....+...........|....|.........------........---+----.........|
|............|.....|...........|....|.........|....+........|......|.........|
|......... potion shop........tin shop.......ring shop......--------.........|
|............-------...........------.........------.........................|
|............................................................................|
|............................................................................|
------------------------------------------------------------------------------

On this map, only the tin shop is guaranteed to appear - the other shops each have a 23 chance to generate. There are two fountains and one sink.

In UnNetHack, four muggers, two sewer rats and a kitten are placed randomly around the town; as before, SlashTHEM also generates a pair of bandits.

Village

                                       -----------------
  ....            ...#..#.             |...|...|...|...|              ....
 ......    #....#..#......#.     .#....--.---.---.---.--.           ##..{..
  ...    .....#.......#......#............................#.      ###  ...
  #      .  #....#..#.....#....#.......#.........#.............   #
  ##    .#....#.....#...#..#........#...............#............ ..
   #   ....#.....#.....#......#...........#..............#...........
 ....##.  ....#......#...#..#....................#.............#.......|---|
 ....  .. #..   ...}}}}}}}}}}}}}}.....#......#.......................#.....|
      ......  }}}}}}}}}}}}}}}}}}}}}}}.................#................|---|
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}........................#..........|
}}}}}}}}}}}}}}}}}}}..........}}}}}}}}}}}}}}.}....#.......#.............|---|
}}}}}}}}}}}}}}}.................}}}}}}}}}}~}~}~}~}..................#......|
  ---------------....................}}}}~}~}~}~}}~}.............#.....|---|
  |.......|.....|........................}~}~}}}}~}~}~}....#...............|
  |.......+.....+..........................}~}~}~}~}~}}................|---|
  |.......|.....|----.......................}~}~}~}~}..#......#............|
  |.......------|...|....................... }}}}}}}}  ............#...|---|
  |...\...S.....S...|.         ...........    }}}}}}     ............
  -------------------                          }}}}

References