Initialize dwarf locations in YAML, not C.

Minimizes magic numbers.
This commit is contained in:
Eric S. Raymond 2024-01-02 10:32:23 -05:00
parent 1f9f39d789
commit b247359d7f
5 changed files with 28 additions and 8 deletions

View file

@ -2835,6 +2835,18 @@ locations: !!omap
{verbs: [], action: [goto, LOC_Y2]},
]
# Starting locations of dwarves.
# Sixth dwarf is special (the pirate). He always starts at his
# chest's eventual location inside the maze.
dwarflocs: [
LOC_KINGHALL,
LOC_WESTBANK,
LOC_Y2,
LOC_ALIKE3,
LOC_COMPLEX,
LOC_MAZEEND12,
]
arbitrary_messages: !!omap
- NO_MESSAGE: !!null
- CAVE_NEARBY: |-