Skip to content

Commit

Permalink
bug(hotfix): Hotfix build for achievements (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mautjee authored Feb 9, 2024
1 parent 7260b34 commit 738f843
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/server/service/achievements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ const goodBustAchievement: Achievement = {
},
};

const doubleAgentAchievement: Achievement = {
name: "Double Agent",
description: "Convince >1 human(s) that you are a bot in a match",
calculate: ({ otherPlayers, player }) => {
const isVotedAgainst = otherPlayers.filter(
(p) => p.votes?.includes(player.userId),
).length;
return isVotedAgainst >= 2;
},
};

const busterStreakAchievement: Achievement = {
name: "Buster Streak",
description: "Successfully bust all bots in (3) consecutive games",
Expand Down Expand Up @@ -127,7 +116,6 @@ export const matchAchievements: Record<AchievementId, Achievement> = {
dailyStreakCounter: streakCountAchievements,
fiveDayStreak: dailyStreakAchievement,
goodBust: goodBustAchievement,
doubleAgent: doubleAgentAchievement,
busterStreak: busterStreakAchievement,
firstTimer: firstTimerAchievement,
beginnersLuck: beginnersLuckAchievement,
Expand Down

0 comments on commit 738f843

Please sign in to comment.