Skip to content

Commit

Permalink
jank
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Sep 19, 2024
1 parent 4c24963 commit b3cb5e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions worlds/witness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,14 @@ def collect(self, state: CollectionState, item: WitnessItem) -> bool:
if item.name in static_witness_items.ALL_ITEM_ALIASES:
real_item = static_witness_items.ALL_ITEM_ALIASES[item.name]
state.prog_items[self.player][real_item] += 1
return True

if item.name in self.player_items.progressive_item_lists:
elif item.name in self.player_items.progressive_item_lists:
item_list = self.player_items.progressive_item_lists[item.name]
index = state.prog_items[self.player][item.name] - 1
if index < len(item_list):
state.prog_items[self.player][item_list[index]] += 1
return True

return True

def remove(self, state: CollectionState, item: WitnessItem) -> bool:
changed = super().remove(state, item)
Expand All @@ -415,14 +415,14 @@ def remove(self, state: CollectionState, item: WitnessItem) -> bool:
if item.name in static_witness_items.ALL_ITEM_ALIASES:
real_item = static_witness_items.ALL_ITEM_ALIASES[item.name]
state.prog_items[self.player][real_item] -= 1
return True

if item.name in self.player_items.progressive_item_lists:
elif item.name in self.player_items.progressive_item_lists:
item_list = self.player_items.progressive_item_lists[item.name]
index = state.prog_items[self.player][item.name]
if index < len(item_list):
state.prog_items[self.player][item_list[index]] -= 1
return True

return True

def get_filler_item_name(self) -> str:
return "Speed Boost"
Expand Down

0 comments on commit b3cb5e9

Please sign in to comment.