DLCQuest: logic speed up (#2323)

This commit is contained in:
Fabian Dill
2023-10-26 00:51:32 +02:00
committed by GitHub
parent aa73dbab2d
commit 88d69dba97
4 changed files with 42 additions and 38 deletions

View File

@@ -23,7 +23,10 @@ def add_coin(region: Region, coin: int, player: int, suffix: str):
location_coin = f"{region.name}{suffix}"
location = DLCQuestLocation(player, location_coin, None, region)
region.locations.append(location)
location.place_locked_item(create_event(player, number_coin))
event = create_event(player, number_coin)
event.coins = coin
event.coin_suffix = suffix
location.place_locked_item(event)
def create_regions(multiworld: MultiWorld, player: int, world_options: Options.DLCQuestOptions):