|
1 | 1 | import typing
|
| 2 | + |
| 3 | +from enum import Enum |
| 4 | + |
2 | 5 | from BaseClasses import MultiWorld, Region, Entrance, Location
|
3 | 6 | from .Locations import SM64Location, location_table, locBoB_table, locWhomp_table, locJRB_table, locCCM_table, \
|
4 | 7 | locBBH_table, \
|
|
7 | 10 | locPSS_table, locSA_table, locBitDW_table, locTotWC_table, locCotMC_table, \
|
8 | 11 | locVCutM_table, locBitFS_table, locWMotR_table, locBitS_table, locSS_table
|
9 | 12 |
|
10 |
| -# sm64paintings is dict of entrances, format LEVEL | AREA |
11 |
| -sm64_level_to_paintings = { |
12 |
| - 91: "Bob-omb Battlefield", |
13 |
| - 241: "Whomp's Fortress", |
14 |
| - 121: "Jolly Roger Bay", |
15 |
| - 51: "Cool, Cool Mountain", |
16 |
| - 41: "Big Boo's Haunt", |
17 |
| - 71: "Hazy Maze Cave", |
18 |
| - 221: "Lethal Lava Land", |
19 |
| - 81: "Shifting Sand Land", |
20 |
| - 231: "Dire, Dire Docks", |
21 |
| - 101: "Snowman's Land", |
22 |
| - 111: "Wet-Dry World", |
23 |
| - 361: "Tall, Tall Mountain", |
24 |
| - 132: "Tiny-Huge Island (Tiny)", |
25 |
| - 131: "Tiny-Huge Island (Huge)", |
26 |
| - 141: "Tick Tock Clock", |
27 |
| - 151: "Rainbow Ride" |
| 13 | +class SM64Levels(int, Enum): |
| 14 | + BOB_OMB_BATTLEFIELD = 91 |
| 15 | + WHOMPS_FORTRESS = 241 |
| 16 | + JOLLY_ROGER_BAY = 121 |
| 17 | + COOL_COOL_MOUNTAIN = 51 |
| 18 | + BIG_BOOS_HAUNT = 41 |
| 19 | + HAZY_MAZE_CAVE = 71 |
| 20 | + LETHAL_LAVA_LAND = 221 |
| 21 | + SHIFTING_SAND_LAND = 81 |
| 22 | + DIRE_DIRE_DOCKS = 231 |
| 23 | + SNOWMANS_LAND = 101 |
| 24 | + WET_DRY_WORLD = 111 |
| 25 | + TALL_TALL_MOUNTAIN = 361 |
| 26 | + TINY_HUGE_ISLAND_TINY = 132 |
| 27 | + TINY_HUGE_ISLAND_HUGE = 131 |
| 28 | + TICK_TOCK_CLOCK = 141 |
| 29 | + RAINBOW_RIDE = 151 |
| 30 | + THE_PRINCESS_SECRET_SLIDE = 271 |
| 31 | + THE_SECRET_AQUARIUM = 201 |
| 32 | + BOWSER_IN_THE_DARK_WORLD = 171 |
| 33 | + TOWER_OF_THE_WING_CAP = 291 |
| 34 | + CAVERN_OF_THE_METAL_CAP = 281 |
| 35 | + VANISH_CAP_UNDER_THE_MOAT = 181 |
| 36 | + BOWSER_IN_THE_FIRE_SEA = 191 |
| 37 | + WING_MARIO_OVER_THE_RAINBOW = 311 |
| 38 | + |
| 39 | +# sm64paintings is a dict of entrances, format LEVEL | AREA |
| 40 | +sm64_level_to_paintings: typing.Dict[SM64Levels, str] = { |
| 41 | + SM64Levels.BOB_OMB_BATTLEFIELD: "Bob-omb Battlefield", |
| 42 | + SM64Levels.WHOMPS_FORTRESS: "Whomp's Fortress", |
| 43 | + SM64Levels.JOLLY_ROGER_BAY: "Jolly Roger Bay", |
| 44 | + SM64Levels.COOL_COOL_MOUNTAIN: "Cool, Cool Mountain", |
| 45 | + SM64Levels.BIG_BOOS_HAUNT: "Big Boo's Haunt", |
| 46 | + SM64Levels.HAZY_MAZE_CAVE: "Hazy Maze Cave", |
| 47 | + SM64Levels.LETHAL_LAVA_LAND: "Lethal Lava Land", |
| 48 | + SM64Levels.SHIFTING_SAND_LAND: "Shifting Sand Land", |
| 49 | + SM64Levels.DIRE_DIRE_DOCKS: "Dire, Dire Docks", |
| 50 | + SM64Levels.SNOWMANS_LAND: "Snowman's Land", |
| 51 | + SM64Levels.WET_DRY_WORLD: "Wet-Dry World", |
| 52 | + SM64Levels.TALL_TALL_MOUNTAIN: "Tall, Tall Mountain", |
| 53 | + SM64Levels.TINY_HUGE_ISLAND_TINY: "Tiny-Huge Island (Tiny)", |
| 54 | + SM64Levels.TINY_HUGE_ISLAND_HUGE: "Tiny-Huge Island (Huge)", |
| 55 | + SM64Levels.TICK_TOCK_CLOCK: "Tick Tock Clock", |
| 56 | + SM64Levels.RAINBOW_RIDE: "Rainbow Ride" |
28 | 57 | }
|
29 | 58 | sm64_paintings_to_level = { painting: level for (level,painting) in sm64_level_to_paintings.items() }
|
30 |
| -# sm64secrets is list of secret areas, same format |
31 |
| -sm64_level_to_secrets = { |
32 |
| - 271: "The Princess's Secret Slide", |
33 |
| - 201: "The Secret Aquarium", |
34 |
| - 171: "Bowser in the Dark World", |
35 |
| - 291: "Tower of the Wing Cap", |
36 |
| - 281: "Cavern of the Metal Cap", |
37 |
| - 181: "Vanish Cap under the Moat", |
38 |
| - 191: "Bowser in the Fire Sea", |
39 |
| - 311: "Wing Mario over the Rainbow" |
| 59 | + |
| 60 | +# sm64secrets is a dict of secret areas, same format as sm64paintings |
| 61 | +sm64_level_to_secrets: typing.Dict[SM64Levels, str] = { |
| 62 | + SM64Levels.THE_PRINCESS_SECRET_SLIDE: "The Princess's Secret Slide", |
| 63 | + SM64Levels.THE_SECRET_AQUARIUM: "The Secret Aquarium", |
| 64 | + SM64Levels.BOWSER_IN_THE_DARK_WORLD: "Bowser in the Dark World", |
| 65 | + SM64Levels.TOWER_OF_THE_WING_CAP: "Tower of the Wing Cap", |
| 66 | + SM64Levels.CAVERN_OF_THE_METAL_CAP: "Cavern of the Metal Cap", |
| 67 | + SM64Levels.VANISH_CAP_UNDER_THE_MOAT: "Vanish Cap under the Moat", |
| 68 | + SM64Levels.BOWSER_IN_THE_FIRE_SEA: "Bowser in the Fire Sea", |
| 69 | + SM64Levels.WING_MARIO_OVER_THE_RAINBOW: "Wing Mario over the Rainbow" |
40 | 70 | }
|
41 | 71 | sm64_secrets_to_level = { secret: level for (level,secret) in sm64_level_to_secrets.items() }
|
42 | 72 |
|
|
0 commit comments