Difference between revisions of "Town"

From NetHackWiki
Jump to navigation Jump to search
m (Village map: slowly constructing map...)
m (Village map: frac)
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''Town''' is an optional [[branch]] that appears in [[UnNetHack]] and [[SlashTHEM]]. It pays homage to the Town found at the top levels of [[Angband]].
+
The '''Town''' is a dungeon [[branch]] that appears in [[UnNetHack]], [[DynaHack]], [[SlashTHEM]], and [[Hack'EM]]. It pays homage to the Town found at the top levels of [[Angband]].
 +
 
 +
{{todo|Hack'EM details}}
  
 
==Generation==
 
==Generation==
The Town branch can be accessed via an up staircase that always appears on the floor below the entrance to [[Sokoban]].
+
The Town branch can be accessed via an up staircase that always appears on the floor after the level containing 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 {{frac|4}} of 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>
  
==UnNetHack==
+
==Description==
 +
The precise layout of the branch depends on the variant.
 +
 
 +
===UnNetHack===
 
In UnNetHack, the branch consists of only two floors:
 
In UnNetHack, the branch consists of only two floors:
  
Line 12: Line 17:
 
* The second floor is the actual town.
 
* The second floor is the actual town.
  
==SlashTHEM==
+
===SlashTHEM===
 
In SlashTHEM, the branch has three floors:
 
In SlashTHEM, the branch has three floors:
  
 
* The first floor is a room-and-corridors 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 map|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>
+
* The third floor is a [[#Village map|village]] with a river running through it.
 +
 
 +
===DynaHack===
 +
DynaHack has a three-floor structure similar to SlashTHEM, though the first two floors use the same town and open filler maps as UnNetHack; in addition, [[Aphrodite]] and the [[nymph level]] can be encountered on the room-and-corridors filler level.
  
 
==Town map==
 
==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 up stair to the third floor. The town also has its own [[watch]] patrolling the area - both versions will generate four watchmen and three watch captains.
+
The layout of the town and the generation of the shops within are relatively similar across variants - some primary differences are that SlashTHEM and DynaHack randomize the placement of the stairs and shop doors, and SlashTHEM has an additional up stair 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).
+
A randomly placed [[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 of levitation|ring]] or [[levitation boots|boots]]); this was imported to UnNetHack from DynaHack.<ref>[https://github.com/UnNetHack/UnNetHack/commit/4ea2dd0da93e75ce67a356dc77b015c45d53445b UnNetHack commit 4ea2dd0: Added a random sink to the Town surface (from DynaHack)]</ref>
  
 
===Town #1===
 
===Town #1===
Line 48: Line 56:
 
------------------------------------------------------------------------------
 
------------------------------------------------------------------------------
 
</replacecharsblock></div>
 
</replacecharsblock></div>
On this map, only the general shop is guaranteed to appear - the other shops each have a {{frac|2|3}} chance to generate. There are three [[fountains]] and one [[sink]].
+
On this map, only the general shop is guaranteed to appear - the other shops each have a {{frac|2|3}} chance of generating. There are three [[fountains]] and one [[sink]].
  
In UnNetHack, four [[mugger]]s, two [[sewer rat]]s and a [[little dog]] are placed randomly around the town; SlashTHEM adds a pair of [[bandit]]s as well.
+
In UnNetHack and DynaHack, four [[mugger]]s, two [[sewer rat]]s and a [[little dog]] are placed randomly around the town; SlashTHEM adds a pair of [[bandit]]s as well.
  
 
===Town #2===
 
===Town #2===
Line 76: Line 84:
 
------------------------------------------------------------------------------
 
------------------------------------------------------------------------------
 
</replacecharsblock></div>
 
</replacecharsblock></div>
On this map, only the [[tin]] shop is guaranteed to appear - the other shops each have a {{frac|2|3}} chance to generate. There are two fountains and one sink.
+
On this map, only the [[tin]] shop is guaranteed to appear - the other shops each have a {{frac|2|3}} chance of generating. 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.
+
In UnNetHack and DynaHack, four muggers, two sewer rats and a [[kitten]] are placed randomly around the town; as before, SlashTHEM also generates a pair of bandits.
  
 
==Village map==
 
==Village map==
Line 88: Line 96:
 
d={{msl|wolf}}
 
d={{msl|wolf}}
 
D=[[werewolf|{{orange|@}}]]
 
D=[[werewolf|{{orange|@}}]]
G={{msl|gold golem}}
+
$={{msl|gold golem}}
 
W={{msl|wood golem}}
 
W={{msl|wood golem}}
 
b=[[bard (player monster)|{{white|@}}]]
 
b=[[bard (player monster)|{{white|@}}]]
Line 105: Line 113:
 
p=[[peasant|{{gray|@}}]]
 
p=[[peasant|{{gray|@}}]]
 
g=[[Warrior (player monster)|{{white|@}}]]
 
g=[[Warrior (player monster)|{{white|@}}]]
C={{msl|priest}}
+
F={{msl|priest}}
 
r={{msl|gypsy}}
 
r={{msl|gypsy}}
 
H={{msl|healer}}
 
H={{msl|healer}}
 +
c=[[chicken|{{brown|c}}]]
 +
G=[[goat|{{white|q}}]]
 +
C={{msl|cow}}
  
 
                                       -----------------
 
                                       -----------------
 
   ....            ...T..T.            |.p.|..p|.p.|.p.|              ....
 
   ....            ...T..T.            |.p.|..p|.p.|.p.|              ....
  ..<...    T...bT..T......T.    .T....--.---.---.---.--.          ##..{..
+
  ..>...    T...bT..T......T.    .T....--.---.---.---.--.          ##..{..
 
   ...    .....T....s..T..mP..T............................T.      ###  ...
 
   ...    .....T....s..T..mP..T............................T.      ###  ...
 
   #      .  T....T..T.....T..b.T.....n.T........qT.......Q.....  #
 
   #      .  T....T..T.....T..b.T.....n.T........qT.......Q.....  #
   ##    .T....T.....T...T..T..P.....T..........Q....T.q...Q...... ..
+
   ##    .T....T.....T...T..T..P.....T..........Q....T.q...C...... ..
 
   #  ....T.....T.m.P.T......T...........T.....Q......QQT...........
 
   #  ....T.....T.m.P.T......T...........T.....Q......QQT...........
 
  ....##.  ....T......T...T..T.............n......T.............T.......|---|
 
  ....##.  ....T......T...T..T.............n......T.............T.......|---|
  ....  .. T..  ...}}}}}}}}}}}}}}.....T......T.......................T...p.|
+
  ....  .. T..  ...}}}}}}}}}}}}}}.....T......T............G..........T...p.|
       ......  }}}}}}}}}}}}}}}}}}}}}}}....A............T................|---|
+
       ......  }}}}}}}}}}}}}}}}}}}}}}}....A............T.........c......|---|
 
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}........................T........H.|
 
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}........................T........H.|
}}}}}}}}}}}}}}}}}}}..........}}}}}}}}}}}}}}.}....T.......T.............|---|
+
}}}}}}}}}}}}}}}}}}}..........}}}}}}}}}}}}}}.}....T.......T.......c.....|---|
}}}}}}}}}}}}}}}....M............}}}}}}}}}}w}w}w}w}..................T....r.|
+
}}}}}}}}}}}}}}}....M............}}}}}}}}}}.}.}.}.}.............c....T....r.|
 
   ---------------........M...........}}}}w}w}w}N}}w}.............T.....|---|
 
   ---------------........M...........}}}}w}w}w}N}}w}.............T.....|---|
   |R.....R|.d...|KK..M...................}w}w}}}}w}w}w}....T.............g.|
+
   |R.....R|.d...|KK..M...................}w}w}}}}w}w}w}....T....G........g.|
 
   |R.....R+D..da+...K............M.........}w}w}w}w}w}}................|---|
 
   |R.....R+D..da+...K............M.........}w}w}w}w}w}}................|---|
   |R.....R|.d...|----........M.........M....}w}w}w}N}..T......T..........C.|
+
   |R.....R|.d...|----........M.........M....}w}w}w}N}..T......T..........F.|
 
   |B.....B------|...|......M................ }}}}}}}}  ............T...|---|
 
   |B.....B------|...|......M................ }}}}}}}}  ............T...|---|
   |.t.l.t.S...G.S..W|.        ...........    }}}}}}    ............
+
   |.t.l.t.S...$.S..W|.        ...........    }}}}}}    ............
 
   -------------------                          }}}}
 
   -------------------                          }}}}
  
 
</replacecharsblock></div>
 
</replacecharsblock></div>
 +
 +
The village encountered in SlashTHEM is 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> The caverns, huts and the southwestern tower are all unlit. Randomly scattered around the village are four [[raven]]s, four [[monkey]]s, a [[fox]] and a [[coyote]], along with five random [[comestible]]s and five other random objects.
 +
 +
The player enters the level from the marked stairway in the northwestern cavern. Outside of the cave is a wood area with several trees, three [[pit]]s and a [[squeaky board]]. Two [[bard (player monster)|bards]] and two [[musician (player monster)|musicians]] may appear within this area - each monster has an independent 50% chance of generating.
 +
 +
On the eastern end of the map is a field with two [[wood nymphs]] and a [[brownie]], and a shallow area in the river with two water nymphs - all of them will be generated asleep at their marked locations. The field also contains various peaceful animals - five [[sheep]], three [[lamb]]s, three [[chicken]]s, two [[goat]]s, and a [[cow]]. The four huts to the north each contain a [[peasant]], while four of the five eastern huts contain a peasant, a [[Healer (player monster)|healer]], a [[warrior (player monster)|warrior]], and a [[Priest (player monster)|priest]] - there is also a {{frac|4|5}} chance of a [[gypsy]] named Shirley occupying the remaining hut.
 +
 +
The tower in the southwest is home to a group of thieves and their guards, all generated asleep on level creation. Outside the tower are seven [[magic trap]]s and three [[spiked pit]]s. There are three [[wolves]] and a [[werewolf]] acting as 'guard dogs' inside the entrance hall, along with an [[anti-magic field]] placed in front of the tower entrance.
 +
 +
The second room contains the group of thieves, with a [[street thug leader]] named Goda<ref>Derived from Takeshi Gouda of ''[[wikipedia:Doraemon|Doraemon]]''</ref><ref name="thugnames">[https://github.com/Soviet5lo/SlashTHEM/blob/v0.9.6/dat/village.des#L131 SlashTHEM village.des, line 131]</ref> occupying a [[throne]] flanked by two [[street thug]]s named Tonzura and Boyakky,<ref>Based on the two henchmen from the Doronbo Gang of ''[[wikipedia:Yatterman|Yatterman]]''</ref><ref name="thugnames"/> and three [[mugger]]s and a [[bandit]] lined up on each side of them. There is a secret door in the lowest-right section that opens into a hallway with a [[gold golem]], which leads to a small room with a [[wood golem]] - the golem is generated on the same square as a chest and a pile of loot (representing the villagers' stolen belongings they were guarding).
 +
 +
The loot piled around the chest includes three gems - an [[obsidian]], [[jade]] and [[agate stone]] - as well as a random amount of gold, a random [[tool]], [[weapon]], [[armor]], and a [[potion]]. Thirteen other objects are spread around the room, and the chest itself may contain any of several items derived from various popular franchises, some of which are known for their dubious quality:
 +
 +
* a blessed +3 [[silver long sword]] named [[wikipedia:The Legend of Zelda|The Master Sword]] (5%)
 +
* a blessed +5 [[plate mail]] named [[wikipedia:Dragon Quest|Erdrick's Armor]] (5%)
 +
* a blessed +4 [[mallet]] named [[wikipedia:Ranma ½|Tendo Mallet]] (5%)
 +
* a blessed +2 [[broadsword]] named [[wikipedia:Chrono Trigger|Grandleon]] (5%)
 +
* a blessed +3 [[katana]] named Kusanagi Blade<!--not sure on this one. Baten Kaitos, maybe?--> (5%)
 +
* a cursed -5 plate mail named [[wikipedia:Castlevania|Alucart Mail]] (15%)
 +
* a cursed -6 [[submachine gun]] named [[wikipedia:GoldenEye 007 (1997 video game)#Klobb|Klobb]] (15%)
 +
* a cursed -9 [[runesword]] named [[wikipedia:Final Fantasy|Excalipoor]] (15%)
 +
* a cursed +3 broadsword named [[wikipedia:Soul Edge|Soul Edge]] (10%)
  
 
==References==
 
==References==
 
<references/>
 
<references/>
 
{{variant-343}}
 
{{variant-343}}
[[Category:Dungeon branches]]
 
 
[[Category:UnNetHack branches]]
 
[[Category:UnNetHack branches]]
 +
[[Category:DynaHack branches]]
 
[[Category:SlashTHEM branches]]
 
[[Category:SlashTHEM branches]]
 +
[[Category:Hack'EM branches]]

Latest revision as of 21:14, 16 March 2024

The Town is a dungeon branch that appears in UnNetHack, DynaHack, SlashTHEM, and Hack'EM. It pays homage to the Town found at the top levels of Angband.

A user has suggested improving this page or section as follows:

"Hack'EM details"

Generation

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

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

Description

The precise layout of the branch depends on the variant.

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.

DynaHack

DynaHack has a three-floor structure similar to SlashTHEM, though the first two floors use the same town and open filler maps as UnNetHack; in addition, Aphrodite and the nymph level can be encountered on the room-and-corridors filler level.

Town map

The layout of the town and the generation of the shops within are relatively similar across variants - some primary differences are that SlashTHEM and DynaHack randomize the placement of the stairs and shop doors, and SlashTHEM has an additional up stair 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 randomly placed 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); this was imported to UnNetHack from DynaHack.[2]

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 of generating. There are three fountains and one sink.

In UnNetHack and DynaHack, 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 of generating. There are two fountains and one sink.

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

Village map

                                       -----------------
  ....            ...#..#.             |.@.|..@|.@.|.@.|              ....
 ..>...    #...@#..#......#.     .#....--.---.---.---.--.           ##..{..
  ...    .....#....^..#..@^..#............................#.      ###  ...
  #      .  #....#..#.....#..@.#.....n.#........q#.......q.....   #
  ##    .#....#.....#...#..#..^.....#..........q....#.q...q...... ..
   #   ....#.....#.@.^.#......#...........#.....q......qq#...........
 ....##.  ....#......#...#..#.............n......#.............#.......|---|
 ....  .. #..   ...}}}}}}}}}}}}}}.....#......#............q..........#...@.|
      ......  }}}}}}}}}}}}}}}}}}}}}}}....n............#.........c......|---|
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}........................#........@.|
}}}}}}}}}}}}}}}}}}}..........}}}}}}}}}}}}}}.}....#.......#.......c.....|---|
}}}}}}}}}}}}}}}....^............}}}}}}}}}}.}.}.}.}.............c....#....@.|
  ---------------........^...........}}}}~}~}~}n}}~}.............#.....|---|
  |@.....@|.d...|^^..^...................}~}~}}}}~}~}~}....#....q........@.|
  |@.....@+@..d^+...^............^.........}~}~}~}~}~}}................|---|
  |@.....@|.d...|----........^.........^....}~}~}~}n}..#......#..........@.|
  |@.....@------|...|......^................ }}}}}}}}  ............#...|---|
  |.@.@.@.S...'.S..'|.         ...........    }}}}}}     ............
  -------------------                          }}}}

The village encountered in SlashTHEM is derived from the Pleasant Valley level in the Lethe Patch's revised Gehennom.[3] The caverns, huts and the southwestern tower are all unlit. Randomly scattered around the village are four ravens, four monkeys, a fox and a coyote, along with five random comestibles and five other random objects.

The player enters the level from the marked stairway in the northwestern cavern. Outside of the cave is a wood area with several trees, three pits and a squeaky board. Two bards and two musicians may appear within this area - each monster has an independent 50% chance of generating.

On the eastern end of the map is a field with two wood nymphs and a brownie, and a shallow area in the river with two water nymphs - all of them will be generated asleep at their marked locations. The field also contains various peaceful animals - five sheep, three lambs, three chickens, two goats, and a cow. The four huts to the north each contain a peasant, while four of the five eastern huts contain a peasant, a healer, a warrior, and a priest - there is also a 45 chance of a gypsy named Shirley occupying the remaining hut.

The tower in the southwest is home to a group of thieves and their guards, all generated asleep on level creation. Outside the tower are seven magic traps and three spiked pits. There are three wolves and a werewolf acting as 'guard dogs' inside the entrance hall, along with an anti-magic field placed in front of the tower entrance.

The second room contains the group of thieves, with a street thug leader named Goda[4][5] occupying a throne flanked by two street thugs named Tonzura and Boyakky,[6][5] and three muggers and a bandit lined up on each side of them. There is a secret door in the lowest-right section that opens into a hallway with a gold golem, which leads to a small room with a wood golem - the golem is generated on the same square as a chest and a pile of loot (representing the villagers' stolen belongings they were guarding).

The loot piled around the chest includes three gems - an obsidian, jade and agate stone - as well as a random amount of gold, a random tool, weapon, armor, and a potion. Thirteen other objects are spread around the room, and the chest itself may contain any of several items derived from various popular franchises, some of which are known for their dubious quality:

References