mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-23 05:56:28 +02:00
Issue #63: add ghost icons.
Add keys with lifecycle prefixes to MapCSS with ghost icons (icons with low opacity).
This commit is contained in:
parent
071164efe0
commit
afaeb6f37a
3 changed files with 94 additions and 40 deletions
|
@ -23,6 +23,18 @@ KILOMETERS_PATTERN = re.compile("^(?P<value>\\d*\\.?\\d*)\\s*km$")
|
|||
MILES_PATTERN = re.compile("^(?P<value>\\d*\\.?\\d*)\\s*mi$")
|
||||
|
||||
|
||||
STAGES_OF_DECAY: List[str] = [
|
||||
"disused",
|
||||
"abandoned",
|
||||
"ruins",
|
||||
"demolished",
|
||||
"removed",
|
||||
"razed",
|
||||
"destroyed",
|
||||
"was", # is not actually a stage of decay
|
||||
]
|
||||
|
||||
|
||||
def parse_float(string: str) -> Optional[float]:
|
||||
"""
|
||||
Parse string representation of a float or integer value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue