do not draw background tile

This commit is contained in:
evilchili 2025-08-08 23:06:08 -07:00
parent dc6c7cfd57
commit 78785fbea5
2 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def inspect(source: Path = typer.Argument(help="The battle map text file to laod
Print information about the specified battle map text file.
"""
manager = app_state["tileset_manager"]
bmap = battlemap.BattleMap(name=source.name, source=source, tileset=manager.console_map)
bmap = battlemap.BattleMap(name=source.name, source=source, tileset=manager.console_map_colorized)
bmap.load()
console = Console()
console.print(repr(bmap), highlight=False)

View File

@ -29,6 +29,8 @@ COLOR_MAP = {
"7": "white on dark_red",
"8": "white on dark_red",
"9": "white on dark_red",
"_": "white on steel_blue",
",": "black on dark_green",
}
@ -72,6 +74,8 @@ class TileSet:
default_factory=lambda: {
" ": "empty",
".": "ground",
",": "grass",
"_": "water",
"d": "door, open",
"D": "door, closed",
"L": "door, locked",