Skip to content

Commit

Permalink
fix: show Found properly when hinting already-found hints
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyV99 committed Jun 19, 2024
1 parent 0ac55ca commit fe1f307
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MultiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ def collect_hints(ctx: Context, team: int, slot: int, item: typing.Union[int, st
found = location_id in ctx.location_checks[team, finding_player]
entrance = ctx.er_hint_data.get(finding_player, {}).get(location_id, "")
hints.append(NetUtils.Hint(receiving_player, finding_player, location_id, item_id, found, entrance,
item_flags, status))
item_flags, NetUtils.HintStatus.HINT_FOUND if found else status))

return hints

Expand All @@ -1105,7 +1105,8 @@ def collect_hint_location_id(ctx: Context, team: int, slot: int, seeked_location

found = seeked_location in ctx.location_checks[team, slot]
entrance = ctx.er_hint_data.get(slot, {}).get(seeked_location, "")
return [NetUtils.Hint(receiving_player, slot, seeked_location, item_id, found, entrance, item_flags, status)]
return [NetUtils.Hint(receiving_player, slot, seeked_location, item_id, found, entrance, item_flags,
NetUtils.HintStatus.HINT_FOUND if found else status)]
return []


Expand Down

0 comments on commit fe1f307

Please sign in to comment.