NitroHack icon indicating copy to clipboard operation
NitroHack copied to clipboard

Dungeon Overview: Altars record as "temples", and lawful chars have chaotic altars recorded as to their god

Open tung opened this issue 13 years ago • 0 comments

Altars are recorded as "temples" in the dungeon overview:

  1. Start/resume a lawful character in wizard mode.
  2. Create a lawful or neutral altar.
  3. Open the dungeon overview.

This shows "a temple" when it should show up as "an altar".

Somewhat related, lawful characters (e.g. samurai) have chaotic altars shown in their dungeon overview as to their god (e.g. "a temple to Amaterasu Omikami"): just try the same steps as above and create a chaotic altar instead.

Thankfully, the fix is really easy: check for temple rooms properly, and convert the player character's alignment to an amask before checking it against the data in the overview info struct. Here's the fix: https://github.com/tung/NitroHack/commit/3e4a189b6b58e5c2535b823f11df05b9a2913c2e

tung avatar Sep 15 '12 12:09 tung