mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Core: make state.prog_items a Dict[int, Counter[str]] (#2407)
This commit is contained in:
@@ -92,7 +92,7 @@ class DLCqworld(World):
|
||||
if change:
|
||||
suffix = item.coin_suffix
|
||||
if suffix:
|
||||
state.prog_items[suffix, self.player] += item.coins
|
||||
state.prog_items[self.player][suffix] += item.coins
|
||||
return change
|
||||
|
||||
def remove(self, state: CollectionState, item: DLCQuestItem) -> bool:
|
||||
@@ -100,5 +100,5 @@ class DLCqworld(World):
|
||||
if change:
|
||||
suffix = item.coin_suffix
|
||||
if suffix:
|
||||
state.prog_items[suffix, self.player] -= item.coins
|
||||
state.prog_items[self.player][suffix] -= item.coins
|
||||
return change
|
||||
|
||||
Reference in New Issue
Block a user