Skip to content

Commit

Permalink
change file/module names from upper camel case to snake case for PEP8…
Browse files Browse the repository at this point in the history
… compliance
  • Loading branch information
Ixrec committed Aug 14, 2024
1 parent d05619a commit 63870d5
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions worlds/outer_wilds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from BaseClasses import Tutorial
from Options import OptionError
from worlds.AutoWorld import WebWorld, World
from .Coordinates import coordinate_description, generate_random_coordinates
from .DBLayout import generate_random_db_layout
from .Orbits import generate_random_orbits
from .WarpPlatforms import generate_random_warp_platform_mapping
from .Items import OuterWildsItem, all_non_event_items_table, item_name_groups, create_item, create_items
from .LocationsAndRegions import all_non_event_locations_table, location_name_groups, create_regions
from .Options import OuterWildsGameOptions, RandomizeDarkBrambleLayout, Spawn
from .coordinates import coordinate_description, generate_random_coordinates
from .db_layout import generate_random_db_layout
from .orbits import generate_random_orbits
from .warp_platforms import generate_random_warp_platform_mapping
from .items import OuterWildsItem, all_non_event_items_table, item_name_groups, create_item, create_items
from .locations_and_regions import all_non_event_locations_table, location_name_groups, create_regions
from .options import OuterWildsGameOptions, RandomizeDarkBrambleLayout, Spawn


class OuterWildsWebWorld(WebWorld):
Expand Down Expand Up @@ -73,15 +73,15 @@ def generate_early(self) -> None:
self.db_layout = generate_random_db_layout(self.random, db_option) \
if db_option != RandomizeDarkBrambleLayout.option_false else "vanilla"

# members and methods implemented by LocationsAndRegions.py, locations.jsonc and connections.jsonc
# members and methods implemented by locations_and_regions.py, locations.jsonc and connections.jsonc

location_name_to_id = all_non_event_locations_table
location_name_groups = location_name_groups

def create_regions(self) -> None:
create_regions(self)

# members and methods implemented by Items.py and items.jsonc
# members and methods implemented by items.py and items.jsonc

item_name_to_id = all_non_event_items_table
item_name_groups = item_name_groups
Expand All @@ -99,7 +99,7 @@ def get_filler_item_name(self) -> str:
# the world is configured to have, but it's not worth that much effort.
return "Marshmallow"

# members and methods related to Options.py
# members and methods related to options.py

options_dataclass = OuterWildsGameOptions
options: OuterWildsGameOptions
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum
from random import Random
from typing import List
from .Options import RandomizeDarkBrambleLayout
from .options import RandomizeDarkBrambleLayout


# In the stringified layout format we want to output for slot data, the vanilla DB layout is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from BaseClasses import Item, ItemClassification
from . import jsonc
from .Options import EarlyKeyItem, Spawn
from .options import EarlyKeyItem, Spawn

if typing.TYPE_CHECKING:
from . import OuterWildsWorld
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from BaseClasses import CollectionState, Location, MultiWorld, Region
from worlds.generic.Rules import set_rule
from . import jsonc
from .Options import OuterWildsGameOptions, Spawn
from .RuleEval import eval_rule
from .WarpPlatforms import warp_platform_to_logical_region, warp_platform_required_items
from .options import OuterWildsGameOptions, Spawn
from .rule_eval import eval_rule
from .warp_platforms import warp_platform_to_logical_region, warp_platform_required_items

if typing.TYPE_CHECKING:
from . import OuterWildsWorld
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion worlds/outer_wilds/test/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List

from test.bases import WorldTestBase, CollectionState
from ..Options import Goal
from ..options import Goal


class OuterWildsTestBase(WorldTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/outer_wilds/test/test_coordinates.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import unittest

from ..Coordinates import get_coordinate_for_number, total_possible_coordinates, validate_coordinate
from ..coordinates import get_coordinate_for_number, total_possible_coordinates, validate_coordinate


class TestCoordinateGeneration(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/outer_wilds/test/test_spawns_and_warps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from . import OuterWildsTestBase
from ..Options import EarlyKeyItem, Spawn
from ..options import EarlyKeyItem, Spawn


class TestRandomWarpDeterminism(OuterWildsTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/outer_wilds/test/test_trap_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from . import OuterWildsTestBase
from ..Items import repeatable_filler_weights
from ..items import repeatable_filler_weights

trap_names = [
"Ship Damage Trap",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion worlds/sc2/ItemGroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* The exception to this are item names that would be ambiguous (eg. "Resource Efficiency")
* Item flaggroups get unique groups as well as combined groups for numbered flaggroups
* eg. "Unit" contains all units, "Armory" contains "Armory 1" through "Armory 6"
* The best place to look these up is at the bottom of Items.py
* The best place to look these up is at the bottom of items.py
* Items that have a parent are grouped together
* eg. "Zergling Items" contains all items that have "Zergling" as a parent
* These groups do NOT contain the parent item
Expand Down

0 comments on commit 63870d5

Please sign in to comment.