Skip to content

Commit

Permalink
Discard changes to worlds/messenger/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar authored May 22, 2024
1 parent 8a30759 commit 1988ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worlds/messenger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def get_item_classification(self, name: str) -> ItemClassification:

if name in {*USEFUL_ITEMS, *USEFUL_SHOP_ITEMS}:
return ItemClassification.useful

if name in TRAPS:
return ItemClassification.trap

Expand All @@ -353,7 +353,7 @@ def get_item_classification(self, name: str) -> ItemClassification:
def create_group(cls, multiworld: "MultiWorld", new_player_id: int, players: Set[int]) -> World:
group = super().create_group(multiworld, new_player_id, players)
assert isinstance(group, MessengerWorld)

group.filler = FILLER.copy()
group.options.traps.value = all(multiworld.worlds[player].options.traps for player in players)
if group.options.traps:
Expand Down Expand Up @@ -389,7 +389,7 @@ def stage_generate_output(cls, multiworld: MultiWorld, output_directory: str) ->
"loc_data": {loc.address: {loc.item.name: [loc.item.code, loc.item.flags]}
for loc in multiworld.get_filled_locations() if loc.address},
}

output = orjson.dumps(data, option=orjson.OPT_NON_STR_KEYS)
with open(out_path, "wb") as f:
f.write(output)

0 comments on commit 1988ab7

Please sign in to comment.