Shop Shuffle

- more can be done here, but this works fine as a sometimes fun proof of concept
This commit is contained in:
Fabian Dill
2020-08-23 15:03:06 +02:00
parent 40e4e3c0c6
commit 26ab3dd69a
7 changed files with 65 additions and 3 deletions

View File

@@ -124,6 +124,7 @@ class World(object):
set_player_attr('local_items', set())
set_player_attr('triforce_pieces_available', 30)
set_player_attr('triforce_pieces_required', 20)
set_player_attr('shop_shuffle', 'off')
def secure(self):
self.random = secrets.SystemRandom()
@@ -1052,6 +1053,7 @@ class ShopType(Enum):
UpgradeShop = 2
class Shop(object):
slots = 3
def __init__(self, region, room_id, type, shopkeeper_config, custom, locked):
self.region = region
self.room_id = room_id