Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hesto2 committed Nov 21, 2024
1 parent 978ac57 commit a28d12c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions Items.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def get_item_for_options(
ItemClassification.progression,
3,
),

# These aren't used in item generation but are referenced in the client
SuitUpgrade.Power_Charge_Beam.value: ItemData(
SuitUpgrade.Power_Charge_Beam.value, 47, ItemClassification.progression, 1
Expand Down
1 change: 1 addition & 0 deletions Metroid Prime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Metroid Prime:

randomize_starting_beam:
# If enabled, the starting beam will be randomized to a random beam that is not the Power Beam. Note that if vanilla start is used, the hive mecha boss will be disabled.
# Note that if you don't randomize door colors, this can lead to you getting BK'd immediately
"false": 50
"true": 0

Expand Down
4 changes: 3 additions & 1 deletion PrimeOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ class IncludeMorphBallBombDoors(Toggle):


class RandomizeStartingBeam(Toggle):
"""If enabled, the starting beam will be randomized to a random beam that is not the Power Beam. Note that if vanilla start is used, the hive mecha boss will be disabled."""
"""If enabled, the starting beam will be randomized to a random beam that is not the Power Beam. Note that if vanilla start is used, the hive mecha boss will be disabled.
Note that if you don't randomize door colors, this can lead to you getting BK'd immediately
"""

display_name = "Randomize Starting Beam"
default = False
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
default_elevator_mappings,
get_random_elevator_mapping,
)
from .config import make_config
from .Config import make_config
from .Regions import create_regions
from .Locations import every_location
from .PrimeOptions import (
Expand Down
2 changes: 1 addition & 1 deletion data/DoorData.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_door_data_by_room_names(
) -> Optional[tuple[DoorData, int]]:
region_data = world.game_region_data.get(area)

assert region_data is not None
assert region_data

source_room_data = region_data.rooms.get(source_room)
if not source_room_data:
Expand Down
2 changes: 1 addition & 1 deletion test/TestBlastShieldRando.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
BlastShieldType,
)
from ..DoorRando import DoorLockType
from ..config import make_config
from ..Config import make_config
from ..data.RoomNames import RoomName
from ..Items import ProgressiveUpgrade, SuitUpgrade
from . import MetroidPrimeTestBase
Expand Down
2 changes: 1 addition & 1 deletion test/TestDoorRando.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from ..Items import SuitUpgrade
from ..DoorRando import DoorLockType

from ..config import make_config
from ..Config import make_config
from ..data.AreaNames import MetroidPrimeArea
from ..data.RoomNames import RoomName
from . import MetroidPrimeTestBase
Expand Down
2 changes: 1 addition & 1 deletion test/TestOutputGeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from typing import Any, Dict
from Fill import distribute_items_restrictive
from ..config import make_config
from ..Config import make_config
from . import MetroidPrimeTestBase

OUTPUT_DIR = os.path.join(os.path.dirname(__file__), "test_output")
Expand Down
2 changes: 1 addition & 1 deletion test/TestStartingBeamRando.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import typing
from ..config import make_config
from ..Config import make_config
from Fill import distribute_items_restrictive
from ..Items import SuitUpgrade
from .. import MetroidPrimeWorld
Expand Down

0 comments on commit a28d12c

Please sign in to comment.