Fixed failing tests

This commit is contained in:
Chris Wilson 2022-03-13 14:37:56 -04:00
parent 14ac139d03
commit 41fd7a8a56
3 changed files with 34 additions and 4 deletions

View File

@ -124,4 +124,29 @@ item_table = (
'Hoverboard',
'Joycons with No Drift',
'Double Rainbow',
'Ping Pong Ball',
'Area 51 Arcade Cabinet',
'Elephant in the Room',
'The Pink Panther',
'Denim Shorts',
'Tennis Racket',
'Collection of Stuffed Animals',
'Old Cell Phone',
'Nintendo Virtual Boy',
'Box of 5.25 Inch Floppy Disks',
'Bag of Miscellaneous Wires',
'Garden Shovel',
'Leather Gloves',
'Knife of +9 VS Ogres',
'Old, Smelly Cheese',
'Linksys BEFSR41 Router',
'Ethernet Cables for a LAN Party',
'Mechanical Pencil',
'Book of Graph Paper',
'300 Sheets of Printer Paper',
'One AAA Battery',
'Box of Old Game Controllers',
'Sega Dreamcast',
'Mario\'s Overalls',
'Betamax Player',
)

View File

@ -31,3 +31,9 @@ def set_rules(world: MultiWorld, player: int):
world.get_location(f"Location {i}", player),
lambda state: state._archipidle_location_is_accessible(player, 20)
)
for i in range(51, 101):
set_rule(
world.get_location(f"Location {i}", player),
lambda state: state._archipidle_location_is_accessible(player, 35)
)

View File

@ -17,7 +17,7 @@ class ArchipIDLEWorld(World):
location_name_to_id = {}
start_id = 9000
for i in range(1, 51):
for i in range(1, 101):
location_name_to_id[f"Location {i}"] = start_id
start_id += 1
@ -26,7 +26,7 @@ class ArchipIDLEWorld(World):
self.world.random.shuffle(item_table_copy)
item_pool = []
for i in range(50):
for i in range(100):
item = Item(item_table[i], True, self.item_name_to_id[item_table[i]], self.player)
item.game = 'ArchipIDLE'
item_pool.append(item)
@ -37,8 +37,7 @@ class ArchipIDLEWorld(World):
set_rules(self.world, self.player)
def create_item(self, name: str) -> Item:
item_data = item_table[name]
return Item(name, item_data.progression, item_data.code, self.player)
return Item(name, True, self.item_name_to_id[name], self.player)
def create_regions(self):
self.world.regions += [