Skip to content

Commit

Permalink
remove * imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris committed May 3, 2024
1 parent efa6bb4 commit 99f2d38
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 134 deletions.
2 changes: 1 addition & 1 deletion worlds/mm2/Color.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Dict, Tuple, List, TYPE_CHECKING, Union
from . import Names
import Names
from zlib import crc32
import struct
import logging
Expand Down
56 changes: 28 additions & 28 deletions worlds/mm2/Items.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from BaseClasses import Item
from typing import NamedTuple, Dict
from .Names import *
import Names


class ItemData(NamedTuple):
Expand All @@ -15,45 +15,45 @@ class MM2Item(Item):


robot_master_weapon_table = {
atomic_fire: ItemData(0x880001, True),
air_shooter: ItemData(0x880002, True),
leaf_shield: ItemData(0x880003, True),
bubble_lead: ItemData(0x880004, True),
quick_boomerang: ItemData(0x880005, True),
time_stopper: ItemData(0x880006, True, True),
metal_blade: ItemData(0x880007, True, True),
crash_bomber: ItemData(0x880008, True),
Names.atomic_fire: ItemData(0x880001, True),
Names.air_shooter: ItemData(0x880002, True),
Names.leaf_shield: ItemData(0x880003, True),
Names.bubble_lead: ItemData(0x880004, True),
Names.quick_boomerang: ItemData(0x880005, True),
Names.time_stopper: ItemData(0x880006, True, True),
Names.metal_blade: ItemData(0x880007, True, True),
Names.crash_bomber: ItemData(0x880008, True),
}

stage_access_table = {
heat_man_stage: ItemData(0x880101, True),
air_man_stage: ItemData(0x880102, True),
wood_man_stage: ItemData(0x880103, True),
bubble_man_stage: ItemData(0x880104, True),
quick_man_stage: ItemData(0x880105, True),
flash_man_stage: ItemData(0x880106, True),
metal_man_stage: ItemData(0x880107, True),
crash_man_stage: ItemData(0x880108, True),
Names.heat_man_stage: ItemData(0x880101, True),
Names.air_man_stage: ItemData(0x880102, True),
Names.wood_man_stage: ItemData(0x880103, True),
Names.bubble_man_stage: ItemData(0x880104, True),
Names.quick_man_stage: ItemData(0x880105, True),
Names.flash_man_stage: ItemData(0x880106, True),
Names.metal_man_stage: ItemData(0x880107, True),
Names.crash_man_stage: ItemData(0x880108, True),
}

item_item_table = {
item_1: ItemData(0x880011, True, True, True),
item_2: ItemData(0x880012, True, True, True),
item_3: ItemData(0x880013, True, True, True)
Names.item_1: ItemData(0x880011, True, True, True),
Names.item_2: ItemData(0x880012, True, True, True),
Names.item_3: ItemData(0x880013, True, True, True)
}

filler_item_table = {
one_up: ItemData(0x880020, False),
weapon_energy: ItemData(0x880021, False),
health_energy: ItemData(0x880022, False),
e_tank: ItemData(0x880023, False, True),
Names.one_up: ItemData(0x880020, False),
Names.weapon_energy: ItemData(0x880021, False),
Names.health_energy: ItemData(0x880022, False),
Names.e_tank: ItemData(0x880023, False, True),
}

filler_item_weights = {
one_up: 1,
weapon_energy: 4,
health_energy: 1,
e_tank: 2,
Names.one_up: 1,
Names.weapon_energy: 4,
Names.health_energy: 1,
Names.e_tank: 2,
}

item_table = {
Expand Down
Loading

0 comments on commit 99f2d38

Please sign in to comment.