bug in legend

This commit is contained in:
evilchili 2025-08-17 14:43:07 -07:00
parent cdbb233622
commit cc35a60210

View File

@ -113,6 +113,7 @@ class BattleMap(BattleMapType):
if char in self.tileset.config.legend: if char in self.tileset.config.legend:
if char in '0123456789': if char in '0123456789':
locations = max(locations, int(char)) locations = max(locations, int(char))
continue
output += f"{char} - {self.tileset.config.legend[char]}\n" output += f"{char} - {self.tileset.config.legend[char]}\n"
if locations: if locations:
location_key = "1" if locations == 1 else f"1-{locations}" location_key = "1" if locations == 1 else f"1-{locations}"