MultiServer: Fix hinting multi-copy items bleeding found status (#5547)
* fix hinting multi-copy items bleeding found status * reword
This commit is contained in:
@@ -1200,16 +1200,17 @@ def collect_hints(ctx: Context, team: int, slot: int, item: typing.Union[int, st
|
|||||||
found = location_id in ctx.location_checks[team, finding_player]
|
found = location_id in ctx.location_checks[team, finding_player]
|
||||||
entrance = ctx.er_hint_data.get(finding_player, {}).get(location_id, "")
|
entrance = ctx.er_hint_data.get(finding_player, {}).get(location_id, "")
|
||||||
|
|
||||||
|
hint_status = status # Assign again because we're in a for loop
|
||||||
if found:
|
if found:
|
||||||
status = HintStatus.HINT_FOUND
|
hint_status = HintStatus.HINT_FOUND
|
||||||
elif status is None:
|
elif hint_status is None:
|
||||||
if item_flags & ItemClassification.trap:
|
if item_flags & ItemClassification.trap:
|
||||||
status = HintStatus.HINT_AVOID
|
hint_status = HintStatus.HINT_AVOID
|
||||||
else:
|
else:
|
||||||
status = HintStatus.HINT_PRIORITY
|
hint_status = HintStatus.HINT_PRIORITY
|
||||||
|
|
||||||
hints.append(
|
hints.append(
|
||||||
Hint(receiving_player, finding_player, location_id, item_id, found, entrance, item_flags, status)
|
Hint(receiving_player, finding_player, location_id, item_id, found, entrance, item_flags, hint_status)
|
||||||
)
|
)
|
||||||
|
|
||||||
return hints
|
return hints
|
||||||
|
|||||||
Reference in New Issue
Block a user