added cookie collect button
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
const {
|
||||||
|
collectCookies
|
||||||
|
} = require(
|
||||||
|
"../../commands/applications/cookies"
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
name:
|
||||||
|
"crumbSaucerCollect",
|
||||||
|
|
||||||
|
|
||||||
|
async execute(
|
||||||
|
interaction
|
||||||
|
) {
|
||||||
|
return collectCookies(
|
||||||
|
interaction
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -197,7 +197,7 @@ async function collect(interaction) {
|
|||||||
let amount =
|
let amount =
|
||||||
randomInteger(
|
randomInteger(
|
||||||
1,
|
1,
|
||||||
200
|
1000
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ const HEIST_METHODS = {
|
|||||||
maxStealAmount: 1500,
|
maxStealAmount: 1500,
|
||||||
|
|
||||||
minPenaltyPercent: 0.01,
|
minPenaltyPercent: 0.01,
|
||||||
maxPenaltyPercent: 0.04
|
maxPenaltyPercent: 0.04,
|
||||||
|
maxPenaltyAmount: 750
|
||||||
},
|
},
|
||||||
|
|
||||||
Hack: {
|
Hack: {
|
||||||
@@ -59,7 +60,8 @@ const HEIST_METHODS = {
|
|||||||
maxStealAmount: 3500,
|
maxStealAmount: 3500,
|
||||||
|
|
||||||
minPenaltyPercent: 0.03,
|
minPenaltyPercent: 0.03,
|
||||||
maxPenaltyPercent: 0.07
|
maxPenaltyPercent: 0.07,
|
||||||
|
maxPenaltyAmount: 2000
|
||||||
},
|
},
|
||||||
|
|
||||||
Smash: {
|
Smash: {
|
||||||
@@ -70,7 +72,8 @@ const HEIST_METHODS = {
|
|||||||
maxStealAmount: 7500,
|
maxStealAmount: 7500,
|
||||||
|
|
||||||
minPenaltyPercent: 0.06,
|
minPenaltyPercent: 0.06,
|
||||||
maxPenaltyPercent: 0.12
|
maxPenaltyPercent: 0.12,
|
||||||
|
maxPenaltyAmount: 5000
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -571,6 +574,8 @@ async function resolveCookieHeist(
|
|||||||
penaltyPercent
|
penaltyPercent
|
||||||
),
|
),
|
||||||
|
|
||||||
|
method.maxPenaltyAmount,
|
||||||
|
|
||||||
playerCookies
|
playerCookies
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -102,7 +102,13 @@ function buildMainMenuButtons() {
|
|||||||
.setCustomId("abort")
|
.setCustomId("abort")
|
||||||
.setLabel("Close")
|
.setLabel("Close")
|
||||||
.setEmoji("✖️")
|
.setEmoji("✖️")
|
||||||
.setStyle(ButtonStyle.Secondary)
|
.setStyle(ButtonStyle.Secondary),
|
||||||
|
|
||||||
|
new ButtonBuilder()
|
||||||
|
.setCustomId("crumbSaucerCollect")
|
||||||
|
.setLabel("Collect")
|
||||||
|
.setEmoji("🍪")
|
||||||
|
.setStyle(ButtonStyle.Success)
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user