Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hesto2 committed Nov 24, 2024
1 parent 1943d87 commit 08bab75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions MetroidPrimeClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ async def server_auth(self, password_requested: bool = False):
if password_requested and not self.password:
await super(MetroidPrimeContext, self).server_auth(password_requested)
await self.get_username()
self.tags = set()
await self.send_connect()

def on_package(self, cmd: str, args: Dict[str, Any]) -> None:
Expand Down
9 changes: 3 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,12 @@ class MetroidPrimeWeb(WebWorld):
"English",
"setup.md",
"setup/en",
["Electro15", "hesto2"],
["hesto2", "Electro15"],
)
]
option_groups = prime_option_groups


# These items will always be given at start
ALWAYS_START_INVENTORY = [SuitUpgrade.Power_Suit.value, SuitUpgrade.Combat_Visor.value]


class MetroidPrimeWorld(World):
"""
Metroid Prime is a first-person action-adventure game originally for the Gamecube. Play as
Expand Down Expand Up @@ -284,6 +280,8 @@ def generate_output(self, output_directory: str) -> None:
self.options.gravity_suit_color,
self.options.phazon_suit_color,
]

# Select a random valid suit color index
for option in options:
if option.value == 0:
option.value = self.random.randint(1, 35) * 10
Expand All @@ -293,7 +291,6 @@ def generate_output(self, output_directory: str) -> None:
configjson = make_config(self)
configjsons = json.dumps(configjson, indent=4)

# Check if the environment variable 'DEBUG' is set to 'True'
if os.environ.get("DEBUG") == "True":
with open("test_config.json", "w") as f:
f.write(configjsons)
Expand Down

0 comments on commit 08bab75

Please sign in to comment.