Options: change displayname to display_name

This commit is contained in:
Fabian Dill
2022-02-02 16:29:29 +01:00
parent 0f20888563
commit dc4b064c73
21 changed files with 227 additions and 228 deletions

View File

@@ -1206,9 +1206,9 @@ class Spoiler():
def write_option(option_key: str, option_obj: type(Options.Option)):
res = getattr(self.world, option_key)[player]
displayname = getattr(option_obj, "displayname", option_key)
display_name = getattr(option_obj, "display_name", option_key)
try:
outfile.write(f'{displayname + ":":33}{res.get_current_option_name()}\n')
outfile.write(f'{display_name + ":":33}{res.get_current_option_name()}\n')
except:
raise Exception