snapshot migration subPhase 5.5
This commit is contained in:
@@ -451,8 +451,8 @@ async function steal(interaction) {
|
||||
interaction,
|
||||
user.id,
|
||||
{
|
||||
type:
|
||||
"steal_success",
|
||||
type: "steal_success",
|
||||
source: "steal",
|
||||
amount,
|
||||
targetUserId:
|
||||
target.id
|
||||
@@ -464,9 +464,11 @@ async function steal(interaction) {
|
||||
interaction,
|
||||
user.id,
|
||||
{
|
||||
type:
|
||||
"cookie_gain",
|
||||
amount
|
||||
type: "cookie_gain",
|
||||
source: "steal",
|
||||
amount,
|
||||
targetUserId:
|
||||
target.id
|
||||
}
|
||||
);
|
||||
|
||||
@@ -479,22 +481,23 @@ async function steal(interaction) {
|
||||
interaction,
|
||||
target.id,
|
||||
{
|
||||
type:
|
||||
"stolen_from_me",
|
||||
type: "stolen_from_me",
|
||||
source: "steal",
|
||||
amount,
|
||||
thiefUserId:
|
||||
user.id
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
await trackProfileEvent(
|
||||
interaction,
|
||||
target.id,
|
||||
{
|
||||
type:
|
||||
"cookie_loss",
|
||||
amount
|
||||
type: "cookie_loss",
|
||||
source: "steal",
|
||||
amount,
|
||||
thiefUserId:
|
||||
user.id
|
||||
}
|
||||
);
|
||||
|
||||
@@ -657,10 +660,12 @@ async function steal(interaction) {
|
||||
interaction,
|
||||
user.id,
|
||||
{
|
||||
type:
|
||||
"cookie_loss",
|
||||
type: "cookie_loss",
|
||||
source: "steal_penalty",
|
||||
amount:
|
||||
penalty
|
||||
penalty,
|
||||
targetUserId:
|
||||
target.id
|
||||
}
|
||||
);
|
||||
|
||||
@@ -669,10 +674,12 @@ async function steal(interaction) {
|
||||
interaction,
|
||||
target.id,
|
||||
{
|
||||
type:
|
||||
"cookie_gain",
|
||||
type: "cookie_gain",
|
||||
source: "steal_penalty",
|
||||
amount:
|
||||
penalty
|
||||
penalty,
|
||||
thiefUserId:
|
||||
user.id
|
||||
}
|
||||
);
|
||||
|
||||
@@ -906,9 +913,11 @@ async function give(interaction) {
|
||||
interaction,
|
||||
user.id,
|
||||
{
|
||||
type:
|
||||
"cookies_given",
|
||||
amount
|
||||
type: "cookies_given",
|
||||
source: "give",
|
||||
amount,
|
||||
targetUserId:
|
||||
target.id
|
||||
}
|
||||
);
|
||||
|
||||
@@ -921,9 +930,11 @@ async function give(interaction) {
|
||||
interaction,
|
||||
target.id,
|
||||
{
|
||||
type:
|
||||
"cookie_gain",
|
||||
amount
|
||||
type: "cookie_gain",
|
||||
source: "give",
|
||||
amount,
|
||||
senderUserId:
|
||||
user.id
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
+3
-1
@@ -166,7 +166,9 @@ async function declareBankruptcy(interaction, userId = interaction.user.id) {
|
||||
userId,
|
||||
{
|
||||
type: "cookie_gain",
|
||||
amount: BANKRUPTCY_GRANT
|
||||
source: "bankruptcy",
|
||||
amount:
|
||||
BANKRUPTCY_GRANT
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
+10
-3
@@ -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
|
||||
|
||||
@@ -304,6 +304,7 @@ async function startBlackjack(
|
||||
game: "blackjack",
|
||||
source,
|
||||
bet,
|
||||
wager: bet,
|
||||
allIn,
|
||||
previousAllIn,
|
||||
previousBet
|
||||
|
||||
@@ -92,6 +92,7 @@ async function collectCookies(
|
||||
userId,
|
||||
{
|
||||
type: "cookie_gain",
|
||||
source: "collect",
|
||||
amount
|
||||
}
|
||||
);
|
||||
|
||||
@@ -503,6 +503,7 @@ async function playRoulette(
|
||||
game: "roulette",
|
||||
source,
|
||||
bet,
|
||||
wager: bet,
|
||||
allIn,
|
||||
previousAllIn,
|
||||
previousBet
|
||||
|
||||
+6
-1
@@ -206,7 +206,12 @@ async function playSlots(
|
||||
type: "game_start",
|
||||
game: "slots",
|
||||
source,
|
||||
bet
|
||||
bet,
|
||||
wager: bet,
|
||||
allIn:
|
||||
bet === playerBalance,
|
||||
previousAllIn,
|
||||
previousBet
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user