mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Stardew Valley: Properly support Universal Tracker (#3630)
* save the seed in slot data to reuse it in UT * add logging when seed is missing * add UT test and fix bundle test * self review * run UT test on allsanity+mod so it's more meaningfull
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import argparse
|
||||
import json
|
||||
|
||||
from ...options import FarmType, EntranceRandomization
|
||||
from ...test import setup_solo_multiworld, allsanity_mods_6_x_x
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -10,21 +11,23 @@ if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
seed = args.seed
|
||||
|
||||
multi_world = setup_solo_multiworld(
|
||||
allsanity_mods_6_x_x(),
|
||||
seed=seed
|
||||
)
|
||||
options = allsanity_mods_6_x_x()
|
||||
options[FarmType.internal_name] = FarmType.option_standard
|
||||
options[EntranceRandomization.internal_name] = EntranceRandomization.option_buildings
|
||||
multi_world = setup_solo_multiworld(options, seed=seed)
|
||||
|
||||
world = multi_world.worlds[1]
|
||||
output = {
|
||||
"bundles": {
|
||||
bundle_room.name: {
|
||||
bundle.name: str(bundle.items)
|
||||
for bundle in bundle_room.bundles
|
||||
}
|
||||
for bundle_room in multi_world.worlds[1].modified_bundles
|
||||
for bundle_room in world.modified_bundles
|
||||
},
|
||||
"items": [item.name for item in multi_world.get_items()],
|
||||
"location_rules": {location.name: repr(location.access_rule) for location in multi_world.get_locations(1)}
|
||||
"location_rules": {location.name: repr(location.access_rule) for location in multi_world.get_locations(1)},
|
||||
"slot_data": world.fill_slot_data()
|
||||
}
|
||||
|
||||
print(json.dumps(output))
|
||||
|
Reference in New Issue
Block a user