Skip to content

Commit

Permalink
nearby merchant point deduction was incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
earthiverse committed Aug 20, 2024
1 parent 9befe28 commit 7fd549a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2323,8 +2323,9 @@ function calculate_monster_score(player, monster, coopShare = 0) {
if (isMerchant && simple_distance(p, player) <= 600) {
// Nearby merchants reduce the points
if (sameOwner) {
score -= 0.2 / divisor; // -Deduct points if our merchant is nearby
} else {
score -= 0.2 / divisor; // Deduct points if our merchant is nearby
}
if (sameParty) {
score -= 0.1 / divisor; // Deduct points if a merchant in our party is nearby
}
}
Expand Down

0 comments on commit 7fd549a

Please sign in to comment.