added achievements for new steal logic

This commit is contained in:
DeSqBlocki
2026-09-13 21:56:18 +02:00
parent b441de286c
commit dd4d6e4817
2 changed files with 73 additions and 31 deletions
+17 -2
View File
@@ -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(
{