mark todo sections

This commit is contained in:
xeals 2023-04-04 22:50:13 +10:00
parent a839460e9a
commit 145f220a07
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -305,6 +305,8 @@ class LogParser:
case ["-heal", pokemon, status, *rest]: case ["-heal", pokemon, status, *rest]:
self.hp[pokemon] = int(status.split("/")[0]) self.hp[pokemon] = int(status.split("/")[0])
# TODO: track healing done
# t.Literal, TaggedPokemon, str # t.Literal, TaggedPokemon, str
case ["-damage", pokemon, status]: case ["-damage", pokemon, status]:
# Pokemon takes direct (non-hazard/condition) damage; status # Pokemon takes direct (non-hazard/condition) damage; status
@ -442,6 +444,12 @@ class LogParser:
LOG.debug(f"{line} <- {last_move}") LOG.debug(f"{line} <- {last_move}")
self.last_status_set[(pokemon, cond)] = last_move[0] self.last_status_set[(pokemon, cond)] = last_move[0]
# t.Literal, TaggedPokemon, str
case ["-terastallize", pokemon_, type]:
pokemon = TaggedPokemon(pokemon_)
# TODO
pass
case _: case _:
# LOG.debug(f"unhandled message {chunks[0]}") # LOG.debug(f"unhandled message {chunks[0]}")
pass pass