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