Docs: add missed JSONMessagePart types

This commit is contained in:
Fabian Dill
2021-11-30 06:41:50 +01:00
parent 0992087e9a
commit 520e5feefb
2 changed files with 15 additions and 7 deletions

View File

@@ -280,11 +280,10 @@ class Hint(typing.NamedTuple):
add_json_text(parts, self.entrance, type="entrance_name")
else:
add_json_text(parts, "'s World")
add_json_text(parts, ". ")
if self.found:
add_json_text(parts, ". ")
add_json_text(parts, "(found)", type="color", color="green")
else:
add_json_text(parts, ". ")
add_json_text(parts, "(not found)", type="color", color="red")
return {"cmd": "PrintJSON", "data": parts, "type": "Hint",