Core: Refactor Autoworld.options to Autoworld.option_definitions (#906)

* refactor `world.options` -> `world.option_definitions`

* rename world api reference

* missed some self.options
This commit is contained in:
alwaysintreble
2022-08-15 16:46:59 -05:00
committed by GitHub
parent 8484193151
commit 81cf1508e0
39 changed files with 49 additions and 49 deletions

View File

@@ -142,7 +142,7 @@ class HKWorld(World):
As the enigmatic Knight, youll traverse the depths, unravel its mysteries and conquer its evils.
""" # from https://www.hollowknight.com
game: str = "Hollow Knight"
options = hollow_knight_options
option_definitions = hollow_knight_options
web = HKWeb()
@@ -435,7 +435,7 @@ class HKWorld(World):
slot_data = {}
options = slot_data["options"] = {}
for option_name in self.options:
for option_name in self.option_definitions:
option = getattr(self.world, option_name)[self.player]
try:
optionvalue = int(option.value)