Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/core/systems/ServerNetwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,10 +706,11 @@ export class ServerNetwork extends System {

const currentProg = missionProgress[missionId] || { progress: 0, completed: false, claimed: false }
if (currentProg.claimed) return // already claimed
if (!(currentProg.progress >= mission.target)) return

// Mark completed and claimed
// Mark the completed mission as claimed
missionProgress[missionId] = {
progress: Math.max(currentProg.progress, mission.target),
...currentProg,
completed: true,
claimed: true,
claimedAt: moment().toISOString(),
Expand Down
Loading