From 3d06b1798a011fadf66c92256e7bbb992685eeaf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 27 Mar 2024 22:58:35 -0400 Subject: [PATCH] Update item pool to include 25 jokes and videos as progression items, as well as a progression GeroCities profile --- worlds/archipidle/Items.py | 7 ++++-- worlds/archipidle/__init__.py | 43 ++++++++++++++++++++++++++--------- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/worlds/archipidle/Items.py b/worlds/archipidle/Items.py index 2b5e6e9a81..5b694aafd8 100644 --- a/worlds/archipidle/Items.py +++ b/worlds/archipidle/Items.py @@ -1,4 +1,7 @@ item_table = ( + 'An Old GeoCities Profile' + 'Very Funny Joke', + 'Motivational Video', 'Staples Easy Button', 'One Million Dollars', 'Replica Master Sword', @@ -13,7 +16,7 @@ item_table = ( '2012 Magic the Gathering Core Set Starter Box', 'Poke\'mon Booster Pack', 'USB Speakers', - 'Plastic Spork', + 'Eco-Friendly Spork', 'Cheeseburger', 'Brand New Car', 'Hunting Knife', @@ -22,7 +25,7 @@ item_table = ( 'One-Up Mushroom', 'Nokia N-GAGE', '2-Liter of Sprite', - 'Free trial of the critically acclaimed MMORPG Final Fantasy XIV, including the entirety of A Realm Reborn and the award winning Heavensward expansion up to level 60 with no restrictions on playtime!', + 'Free trial of the critically acclaimed MMORPG Final Fantasy XIV, including the entirety of A Realm Reborn and the award winning Heavensward and Stormblood expansions up to level 70 with no restrictions on playtime!', 'Can of Compressed Air', 'Striped Kitten', 'USB Power Adapter', diff --git a/worlds/archipidle/__init__.py b/worlds/archipidle/__init__.py index 2d182f31dc..23ca69bae1 100644 --- a/worlds/archipidle/__init__.py +++ b/worlds/archipidle/__init__.py @@ -3,6 +3,7 @@ from .Items import item_table from .Rules import set_rules from ..AutoWorld import World, WebWorld from datetime import datetime +from random import shuffle class ArchipIDLEWebWorld(WebWorld): @@ -29,7 +30,7 @@ class ArchipIDLEWebWorld(WebWorld): class ArchipIDLEWorld(World): """ - An idle game which sends a check every thirty seconds, up to two hundred checks. + An idle game which sends a check every thirty to sixty seconds, up to two hundred checks. """ game = "ArchipIDLE" topology_present = False @@ -56,18 +57,38 @@ class ArchipIDLEWorld(World): return Item(name, ItemClassification.progression, self.item_name_to_id[name], self.player) def create_items(self): - item_table_copy = list(item_table) - self.multiworld.random.shuffle(item_table_copy) - - item_pool = [] - for i in range(200): - item = ArchipIDLEItem( - item_table_copy[i], - ItemClassification.progression if i < 40 else ItemClassification.filler, - self.item_name_to_id[item_table_copy[i]], + item_pool = [ + ArchipIDLEItem( + item_table[0], + ItemClassification.progression, + self.item_name_to_id[item_table[0]], self.player ) - item_pool.append(item) + ] + + for i in range(25): + item_pool.append(ArchipIDLEItem( + item_table[1], + ItemClassification.progression, + self.item_name_to_id[item_table[1]], + self.player + )) + item_pool.append(ArchipIDLEItem( + item_table[2], + ItemClassification.progression, + self.item_name_to_id[item_table[2]], + self.player + )) + + item_table_copy = list(item_table[3:]) + self.random.shuffle(item_table_copy) + for i in range(150): + item_pool.append(ArchipIDLEItem( + item_table_copy[i], + ItemClassification.progression if i < 9 else ItemClassification.filler, + self.item_name_to_id[item_table_copy[i]], + self.player + )) self.multiworld.itempool += item_pool