profile update with badges and achievements

This commit is contained in:
DeSqBlocki
2026-08-22 20:27:42 +02:00
parent c630543f9e
commit e437c051b9
7 changed files with 542 additions and 1441 deletions
+73
View File
@@ -14,6 +14,10 @@ const {
formatPercentage
} = require("./cookieEconomy");
const {
trackProfileEvent
} = require("./profileSystem");
/*
* ============================================================
@@ -394,6 +398,46 @@ async function resolveCookieHeist(
100;
await trackProfileEvent(
interaction,
playerId,
{
type:
"game_result",
game:
"heist",
result:
"win"
}
);
await trackProfileEvent(
interaction,
playerId,
{
type:
"vault_steal",
amount
}
);
await trackProfileEvent(
interaction,
playerId,
{
type:
"cookie_gain",
amount
}
);
const embed =
new EmbedBuilder()
.setTitle(
@@ -605,6 +649,35 @@ async function resolveCookieHeist(
100;
await trackProfileEvent(
interaction,
playerId,
{
type:
"game_result",
game:
"heist",
result:
"loss"
}
);
await trackProfileEvent(
interaction,
playerId,
{
type:
"cookie_loss",
amount:
penalty
}
);
const embed =
new EmbedBuilder()
.setTitle(