Update ArchipIDLE's documentation and create items in `create_items` func. (#1669)

This commit is contained in:
Chris Wilson 2023-04-06 00:08:41 -04:00 committed by GitHub
parent 47989325f8
commit c626618221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View File

@ -21,7 +21,7 @@ class ArchipIDLEWebWorld(WebWorld):
class ArchipIDLEWorld(World): class ArchipIDLEWorld(World):
""" """
An idle game which sends a check every thirty seconds, up to one hundred checks. An idle game which sends a check every thirty seconds, up to two hundred checks.
""" """
game = "ArchipIDLE" game = "ArchipIDLE"
topology_present = False topology_present = False
@ -41,7 +41,13 @@ class ArchipIDLEWorld(World):
location_name_to_id[f"IDLE item number {i}"] = start_id location_name_to_id[f"IDLE item number {i}"] = start_id
start_id += 1 start_id += 1
def generate_basic(self): def set_rules(self):
set_rules(self.multiworld, self.player)
def create_item(self, name: str) -> Item:
return Item(name, ItemClassification.progression, self.item_name_to_id[name], self.player)
def create_items(self):
item_table_copy = list(item_table) item_table_copy = list(item_table)
self.multiworld.random.shuffle(item_table_copy) self.multiworld.random.shuffle(item_table_copy)
@ -57,12 +63,6 @@ class ArchipIDLEWorld(World):
self.multiworld.itempool += item_pool self.multiworld.itempool += item_pool
def set_rules(self):
set_rules(self.multiworld, self.player)
def create_item(self, name: str) -> Item:
return Item(name, ItemClassification.progression, self.item_name_to_id[name], self.player)
def create_regions(self): def create_regions(self):
self.multiworld.regions += [ self.multiworld.regions += [
create_region(self.multiworld, self.player, 'Menu', None, ['Entrance to IDLE Zone']), create_region(self.multiworld, self.player, 'Menu', None, ['Entrance to IDLE Zone']),

View File

@ -2,8 +2,9 @@
## What is this game? ## What is this game?
ArchipIDLE is the 2022 Archipelago April Fools' Day joke. It is an idle game that sends a location check every ArchipIDLE was originally the 2022 Archipelago April Fools' Day joke. It is an idle game that sends a location check
thirty seconds, up to one hundred checks. on regular intervals. Updated annually with more items, gimmicks, and features, the game is visible
only during the month of April.
## Where is the settings page? ## Where is the settings page?