diff options
Diffstat (limited to 'src/LivingVillage.Desktop')
| -rw-r--r-- | src/LivingVillage.Desktop/Interaction.fs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/LivingVillage.Desktop/Interaction.fs b/src/LivingVillage.Desktop/Interaction.fs index 20ffa17..916544c 100644 --- a/src/LivingVillage.Desktop/Interaction.fs +++ b/src/LivingVillage.Desktop/Interaction.fs @@ -139,17 +139,12 @@ module InteractionResolver = candidates |> List.sortBy (fun candidate -> - let priority = - match candidate.Action with - | EnterHome _ - | ExitHome _ -> 0 - | TalkTo _ -> 1 let stableId = match candidate.Action with | TalkTo id -> npcNumber id | EnterHome(HomeId id) | ExitHome(HomeId id) -> id - priority, candidate.DistanceSquared, stableId) + candidate.DistanceSquared, stableId) |> List.tryHead let resolveAction = resolve |
