mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-27 16:29:56 -07:00
Evil
This commit is contained in:
+49
-26
@@ -175,6 +175,31 @@ def create_junk_items(world: "HatInTimeWorld", count: int) -> List[Item]:
|
|||||||
return junk_pool
|
return junk_pool
|
||||||
|
|
||||||
|
|
||||||
|
def get_shop_trap_name(world: "HatInTimeWorld") -> str:
|
||||||
|
rand = world.random.randint(1, 9)
|
||||||
|
name = ""
|
||||||
|
if rand == 1:
|
||||||
|
name = "Time Plece"
|
||||||
|
elif rand == 2:
|
||||||
|
name = "Time Piece (Trust me bro)"
|
||||||
|
elif rand == 3:
|
||||||
|
name = "TimePiece"
|
||||||
|
elif rand == 4:
|
||||||
|
name = "Time Piece?"
|
||||||
|
elif rand == 5:
|
||||||
|
name = "Time Pizza"
|
||||||
|
elif rand == 6:
|
||||||
|
name = "Time piece"
|
||||||
|
elif rand == 7:
|
||||||
|
name = "TIme Piece"
|
||||||
|
elif rand == 8:
|
||||||
|
name = "Time Piece (maybe)"
|
||||||
|
elif rand == 9:
|
||||||
|
name = "Time Piece ;)"
|
||||||
|
|
||||||
|
return name
|
||||||
|
|
||||||
|
|
||||||
ahit_items = {
|
ahit_items = {
|
||||||
"Yarn": ItemData(2000300001, ItemClassification.progression_skip_balancing),
|
"Yarn": ItemData(2000300001, ItemClassification.progression_skip_balancing),
|
||||||
"Time Piece": ItemData(2000300002, ItemClassification.progression_skip_balancing),
|
"Time Piece": ItemData(2000300002, ItemClassification.progression_skip_balancing),
|
||||||
@@ -186,6 +211,18 @@ ahit_items = {
|
|||||||
"Dweller Mask": ItemData(2000300052, ItemClassification.progression),
|
"Dweller Mask": ItemData(2000300052, ItemClassification.progression),
|
||||||
"Time Stop Hat": ItemData(2000300053, ItemClassification.progression),
|
"Time Stop Hat": ItemData(2000300053, ItemClassification.progression),
|
||||||
|
|
||||||
|
# Badges
|
||||||
|
"Projectile Badge": ItemData(2000300024, ItemClassification.useful),
|
||||||
|
"Fast Hatter Badge": ItemData(2000300025, ItemClassification.useful),
|
||||||
|
"Hover Badge": ItemData(2000300026, ItemClassification.useful),
|
||||||
|
"Hookshot Badge": ItemData(2000300027, ItemClassification.progression),
|
||||||
|
"Item Magnet Badge": ItemData(2000300028, ItemClassification.useful),
|
||||||
|
"No Bonk Badge": ItemData(2000300029, ItemClassification.useful),
|
||||||
|
"Compass Badge": ItemData(2000300030, ItemClassification.useful),
|
||||||
|
"Scooter Badge": ItemData(2000300031, ItemClassification.useful),
|
||||||
|
"One-Hit Hero Badge": ItemData(2000300038, ItemClassification.progression, HatDLC.death_wish),
|
||||||
|
"Camera Badge": ItemData(2000300042, ItemClassification.progression, HatDLC.death_wish),
|
||||||
|
|
||||||
# Relics
|
# Relics
|
||||||
"Relic (Burger Patty)": ItemData(2000300006, ItemClassification.progression),
|
"Relic (Burger Patty)": ItemData(2000300006, ItemClassification.progression),
|
||||||
"Relic (Burger Cushion)": ItemData(2000300007, ItemClassification.progression),
|
"Relic (Burger Cushion)": ItemData(2000300007, ItemClassification.progression),
|
||||||
@@ -199,23 +236,13 @@ ahit_items = {
|
|||||||
"Relic (Red Crayon)": ItemData(2000300015, ItemClassification.progression),
|
"Relic (Red Crayon)": ItemData(2000300015, ItemClassification.progression),
|
||||||
"Relic (Blue Crayon)": ItemData(2000300016, ItemClassification.progression),
|
"Relic (Blue Crayon)": ItemData(2000300016, ItemClassification.progression),
|
||||||
"Relic (Green Crayon)": ItemData(2000300017, ItemClassification.progression),
|
"Relic (Green Crayon)": ItemData(2000300017, ItemClassification.progression),
|
||||||
|
# DLC
|
||||||
# Badges
|
"Relic (Cake Stand)": ItemData(2000300018, ItemClassification.progression, HatDLC.dlc1),
|
||||||
"Projectile Badge": ItemData(2000300024, ItemClassification.useful),
|
"Relic (Shortcake)": ItemData(2000300019, ItemClassification.progression, HatDLC.dlc1),
|
||||||
"Fast Hatter Badge": ItemData(2000300025, ItemClassification.useful),
|
"Relic (Chocolate Cake Slice)": ItemData(2000300020, ItemClassification.progression, HatDLC.dlc1),
|
||||||
"Hover Badge": ItemData(2000300026, ItemClassification.useful),
|
"Relic (Chocolate Cake)": ItemData(2000300021, ItemClassification.progression, HatDLC.dlc1),
|
||||||
"Hookshot Badge": ItemData(2000300027, ItemClassification.progression),
|
"Relic (Necklace Bust)": ItemData(2000300022, ItemClassification.progression, HatDLC.dlc2),
|
||||||
"Item Magnet Badge": ItemData(2000300028, ItemClassification.useful),
|
"Relic (Necklace)": ItemData(2000300023, ItemClassification.progression, HatDLC.dlc2),
|
||||||
"No Bonk Badge": ItemData(2000300029, ItemClassification.useful),
|
|
||||||
"Compass Badge": ItemData(2000300030, ItemClassification.useful),
|
|
||||||
"Scooter Badge": ItemData(2000300031, ItemClassification.useful),
|
|
||||||
"One-Hit Hero Badge": ItemData(2000300038, ItemClassification.progression, HatDLC.death_wish),
|
|
||||||
"Camera Badge": ItemData(2000300042, ItemClassification.progression, HatDLC.death_wish),
|
|
||||||
|
|
||||||
# Other
|
|
||||||
"Badge Pin": ItemData(2000300043, ItemClassification.useful),
|
|
||||||
"Umbrella": ItemData(2000300033, ItemClassification.progression),
|
|
||||||
"Progressive Painting Unlock": ItemData(2000300003, ItemClassification.progression),
|
|
||||||
|
|
||||||
# Garbage items
|
# Garbage items
|
||||||
"25 Pons": ItemData(2000300034, ItemClassification.filler),
|
"25 Pons": ItemData(2000300034, ItemClassification.filler),
|
||||||
@@ -229,15 +256,11 @@ ahit_items = {
|
|||||||
"Laser Trap": ItemData(2000300040, ItemClassification.trap),
|
"Laser Trap": ItemData(2000300040, ItemClassification.trap),
|
||||||
"Parade Trap": ItemData(2000300041, ItemClassification.trap),
|
"Parade Trap": ItemData(2000300041, ItemClassification.trap),
|
||||||
|
|
||||||
# DLC1 items
|
# Other
|
||||||
"Relic (Cake Stand)": ItemData(2000300018, ItemClassification.progression, HatDLC.dlc1),
|
"Badge Pin": ItemData(2000300043, ItemClassification.useful),
|
||||||
"Relic (Shortcake)": ItemData(2000300019, ItemClassification.progression, HatDLC.dlc1),
|
"Umbrella": ItemData(2000300033, ItemClassification.progression),
|
||||||
"Relic (Chocolate Cake Slice)": ItemData(2000300020, ItemClassification.progression, HatDLC.dlc1),
|
"Progressive Painting Unlock": ItemData(2000300003, ItemClassification.progression),
|
||||||
"Relic (Chocolate Cake)": ItemData(2000300021, ItemClassification.progression, HatDLC.dlc1),
|
# DLC
|
||||||
|
|
||||||
# DLC2 items
|
|
||||||
"Relic (Necklace Bust)": ItemData(2000300022, ItemClassification.progression, HatDLC.dlc2),
|
|
||||||
"Relic (Necklace)": ItemData(2000300023, ItemClassification.progression, HatDLC.dlc2),
|
|
||||||
"Metro Ticket - Yellow": ItemData(2000300045, ItemClassification.progression, HatDLC.dlc2),
|
"Metro Ticket - Yellow": ItemData(2000300045, ItemClassification.progression, HatDLC.dlc2),
|
||||||
"Metro Ticket - Green": ItemData(2000300046, ItemClassification.progression, HatDLC.dlc2),
|
"Metro Ticket - Green": ItemData(2000300046, ItemClassification.progression, HatDLC.dlc2),
|
||||||
"Metro Ticket - Blue": ItemData(2000300047, ItemClassification.progression, HatDLC.dlc2),
|
"Metro Ticket - Blue": ItemData(2000300047, ItemClassification.progression, HatDLC.dlc2),
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from BaseClasses import Item, ItemClassification, Tutorial, Location, MultiWorld
|
from BaseClasses import Item, ItemClassification, Tutorial, Location, MultiWorld
|
||||||
from .Items import item_table, create_item, relic_groups, act_contracts, create_itempool
|
from .Items import item_table, create_item, relic_groups, act_contracts, create_itempool, get_shop_trap_name
|
||||||
from .Regions import create_regions, randomize_act_entrances, chapter_act_info, create_events, get_shuffled_region
|
from .Regions import create_regions, randomize_act_entrances, chapter_act_info, create_events, get_shuffled_region
|
||||||
from .Locations import location_table, contract_locations, is_location_valid, get_location_names, TASKSANITY_START_ID, \
|
from .Locations import location_table, contract_locations, is_location_valid, get_location_names, TASKSANITY_START_ID, \
|
||||||
get_total_locations
|
get_total_locations
|
||||||
@@ -226,7 +226,13 @@ class HatInTimeWorld(World):
|
|||||||
shop_item_names: Dict[str, str] = {}
|
shop_item_names: Dict[str, str] = {}
|
||||||
for name in self.shop_locs:
|
for name in self.shop_locs:
|
||||||
loc: Location = self.multiworld.get_location(name, self.player)
|
loc: Location = self.multiworld.get_location(name, self.player)
|
||||||
shop_item_names.setdefault(str(loc.address), loc.item.name)
|
item_name: str
|
||||||
|
if loc.item.classification is ItemClassification.trap and loc.item.game == "A Hat in Time":
|
||||||
|
item_name = get_shop_trap_name(self)
|
||||||
|
else:
|
||||||
|
item_name = loc.item.name
|
||||||
|
|
||||||
|
shop_item_names.setdefault(str(loc.address), item_name)
|
||||||
|
|
||||||
slot_data["ShopItemNames"] = shop_item_names
|
slot_data["ShopItemNames"] = shop_item_names
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user