mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-29 22:23:24 -07:00
Add option check for collect and remove
This commit is contained in:
@@ -351,14 +351,14 @@ class TunicWorld(World):
|
||||
# cache whether you can get through combat logic areas
|
||||
def collect(self, state: CollectionState, item: Item) -> bool:
|
||||
change = super().collect(state, item)
|
||||
if change:
|
||||
if change and self.options.combat_logic:
|
||||
if item.name in combat_items:
|
||||
state.prog_items[self.player]["need_to_reset_combat_state_from_collect"] = 1
|
||||
return change
|
||||
|
||||
def remove(self, state: CollectionState, item: Item) -> bool:
|
||||
change = super().remove(state, item)
|
||||
if change:
|
||||
if change and self.options.combat_logic:
|
||||
if item.name in combat_items:
|
||||
state.prog_items[self.player]["need_to_reset_combat_state_from_remove"] = 1
|
||||
return change
|
||||
|
||||
Reference in New Issue
Block a user