added achievements for new steal logic
This commit is contained in:
+17
-2
@@ -636,7 +636,7 @@ function getDefaultStats(userId, guildId) {
|
||||
allInRunItBack: 0,
|
||||
bankruptcyCount: 0,
|
||||
bankruptcyRecoveryBest: 0,
|
||||
|
||||
maxUniqueStealAttackers: 0,
|
||||
etTuCrumb: 0,
|
||||
noHardFeelings: 0,
|
||||
cookieLaundering: 0
|
||||
@@ -846,7 +846,22 @@ async function trackProfileEvent(
|
||||
}
|
||||
);
|
||||
break;
|
||||
|
||||
case "steal_targeted":
|
||||
await stats.updateOne(
|
||||
{
|
||||
userId,
|
||||
guildId
|
||||
},
|
||||
{
|
||||
$max: {
|
||||
"special.maxUniqueStealAttackers":
|
||||
Number(
|
||||
event.uniqueAttackers ?? 0
|
||||
)
|
||||
}
|
||||
}
|
||||
);
|
||||
break;
|
||||
case "steal_success":
|
||||
await stats.updateOne(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user