Pokémon Red and Blue: Progressive Card Key and auto hint bug fixes (#2076)

* Fix Progressive Card Key bug

* Fix auto hint spam
This commit is contained in:
Alchav
2023-08-02 13:51:53 -04:00
committed by GitHub
parent 6befc91773
commit 6864f28f3e
4 changed files with 22 additions and 20 deletions

View File

@@ -176,8 +176,10 @@ async def parse_locations(data: List, ctx: GBContext):
elif (location_name_to_id["Fossil - Choice B"] in ctx.checked_locations and location_name_to_id["Fossil - Choice A"]
not in ctx.checked_locations):
hints.append("Fossil - Choice A")
hints = [location_name_to_id[loc] for loc in hints if loc not in ctx.auto_hints and location_name_to_id[loc] in
ctx.missing_locations and location_name_to_id[loc] not in ctx.locations_checked]
hints = [
location_name_to_id[loc] for loc in hints if location_name_to_id[loc] not in ctx.auto_hints and
location_name_to_id[loc] in ctx.missing_locations and location_name_to_id[loc] not in ctx.locations_checked
]
if hints:
await ctx.send_msgs([{"cmd": "LocationScouts", "locations": hints, "create_as_hint": 2}])
ctx.auto_hints.update(hints)