Skip to content

Commit

Permalink
forgot to swap prog_items
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Nov 22, 2023
1 parent 20ce55a commit ce947c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/messenger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ def create_item(self, name: str) -> MessengerItem:
def collect(self, state: "CollectionState", item: "Item") -> bool:
change = super().collect(state, item)
if change and "Time Shard" in item.name:
state.prog_items["Shards", self.player] += int(item.name.strip("Time Shard ()"))
state.prog_items[self.player]["Shards"] += int(item.name.strip("Time Shard ()"))
return change

def remove(self, state: "CollectionState", item: "Item") -> bool:
change = super().remove(state, item)
if change and "Time Shard" in item.name:
state.prog_items["Shards", self.player] -= int(item.name.strip("Time Shard ()"))
state.prog_items[self.player]["Shards"] -= int(item.name.strip("Time Shard ()"))
return change

0 comments on commit ce947c0

Please sign in to comment.