Skip to content

Commit

Permalink
update subversion_rando to v0.9.1 (logic optimization)
Browse files Browse the repository at this point in the history
  • Loading branch information
beauxq committed Oct 20, 2024
1 parent 41df534 commit c486f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion worlds/subversion/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def cs_to_loadout(sv_game: Game, collection_state: CollectionState, player: int)
""" convert Archipelago CollectionState to subversion_rando collection state """
loadout = Loadout(sv_game)
for item_name, count in item_counts(collection_state, player):
loadout.contents[id_to_sv_item[item_name_to_id[item_name]]] += count
# private usage for performance
# assert len(loadout._cache) == 0
loadout._contents[id_to_sv_item[item_name_to_id[item_name]]] += count # pyright: ignore[reportPrivateUsage]
loadout.append(Items.spaceDrop)
loadout.append(area_doors["SunkenNestL"])
update_area_logic(loadout)
Expand Down
2 changes: 1 addition & 1 deletion worlds/subversion/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
subversion_rando @ git+https://github.com/SubversionRando/SubversionRando@e99de834516989d62c2473965fe2b6a66092dede#0.9.0
subversion_rando @ git+https://github.com/SubversionRando/SubversionRando@715f72015c7b0a2ac91af9c3c93fc4e573a8cfe5#0.9.1
typing_extensions>=4.12.2

0 comments on commit c486f3f

Please sign in to comment.