snapshot migration subPhase 5.5

This commit is contained in:
DeSqBlocki
2026-08-27 19:50:12 +02:00
parent 9710fc65bf
commit 14a059034c
7 changed files with 154 additions and 126 deletions
+10 -8
View File
@@ -161,14 +161,16 @@ async function declareBankruptcy(interaction, userId = interaction.user.id) {
};
}
await trackProfileEvent(
interaction,
userId,
{
type: "cookie_gain",
amount: BANKRUPTCY_GRANT
}
);
await trackProfileEvent(
interaction,
userId,
{
type: "cookie_gain",
source: "bankruptcy",
amount:
BANKRUPTCY_GRANT
}
);
return {
ok: true,
+12 -5
View File
@@ -72,7 +72,7 @@ async function resolveCookieHeist(
if (
type !== "cookieHeist" ||
ownerId !==
interaction.user.id
interaction.user.id
) {
return temporaryEphemeralReply(
interaction,
@@ -85,7 +85,7 @@ async function resolveCookieHeist(
const method =
HEIST_METHODS[
methodName
methodName
];
if (!method) {
@@ -269,17 +269,24 @@ async function resolveCookieHeist(
}
);
/*
* ============================================================
* HEIST
* ============================================================
*/
await trackProfileEvent(
interaction,
playerId,
{
type:
"vault_steal",
type: "vault_steal",
source: "heist",
game: "heist",
result: "win",
amount
}
);
const [
playerAfter,
vaultAfter
+4 -3
View File
@@ -304,6 +304,7 @@ async function startBlackjack(
game: "blackjack",
source,
bet,
wager: bet,
allIn,
previousAllIn,
previousBet
@@ -1328,9 +1329,9 @@ function shuffleDeck(
deck[i],
deck[j]
] = [
deck[j],
deck[i]
];
deck[j],
deck[i]
];
}
}
+9 -8
View File
@@ -87,14 +87,15 @@ async function collectCookies(
);
await trackProfileEvent(
interaction,
userId,
{
type: "cookie_gain",
amount
}
);
await trackProfileEvent(
interaction,
userId,
{
type: "cookie_gain",
source: "collect",
amount
}
);
const balance = await getCookieBalance(
+14 -13
View File
@@ -495,19 +495,20 @@ async function playRoulette(
const allIn =
bet === playerBalance;
await trackProfileEvent(
interaction,
playerId,
{
type: "game_start",
game: "roulette",
source,
bet,
allIn,
previousAllIn,
previousBet
}
);
await trackProfileEvent(
interaction,
playerId,
{
type: "game_start",
game: "roulette",
source,
bet,
wager: bet,
allIn,
previousAllIn,
previousBet
}
);
await interaction.update({
embeds: [
+15 -10
View File
@@ -199,16 +199,21 @@ async function playSlots(
throw error;
}
await trackProfileEvent(
interaction,
playerId,
{
type: "game_start",
game: "slots",
source,
bet
}
);
await trackProfileEvent(
interaction,
playerId,
{
type: "game_start",
game: "slots",
source,
bet,
wager: bet,
allIn:
bet === playerBalance,
previousAllIn,
previousBet
}
);
await interaction.update({
embeds: [