mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-18 21:38:13 -07:00
Compare commits
1 Commits
0.6.6
...
NewSoupVi-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2fcaec6ad |
@@ -792,9 +792,10 @@ class Context:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def replace_hint(self, team: int, slot: int, old_hint: Hint, new_hint: Hint) -> None:
|
def replace_hint(self, team: int, slot: int, old_hint: Hint, new_hint: Hint) -> None:
|
||||||
if old_hint in self.hints[team, slot]:
|
for real_slot in self.slot_set(slot):
|
||||||
self.hints[team, slot].remove(old_hint)
|
if old_hint in self.hints[team, real_slot]:
|
||||||
self.hints[team, slot].add(new_hint)
|
self.hints[team, real_slot].remove(old_hint)
|
||||||
|
self.hints[team, real_slot].add(new_hint)
|
||||||
|
|
||||||
# "events"
|
# "events"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user