Make hint costs relative

This commit is contained in:
Fabian Dill
2021-05-11 23:08:50 +02:00
parent 1b2283b173
commit a231850911
7 changed files with 62 additions and 59 deletions

View File

@@ -303,7 +303,10 @@ def handle_name(name: str, player: int, name_counter: Counter):
name] > 1 else ''),
player=player,
PLAYER=(player if player > 1 else '')))
return new_name.strip().replace(' ', '_')[:16]
new_name = new_name.strip().replace(' ', '_')[:16]
if new_name == "Archipelago":
raise Exception(f"You cannot name yourself \"{new_name}\"")
return new_name
def prefer_int(input_data: str) -> typing.Union[str, int]: