added cookie collect button

This commit is contained in:
DeSqBlocki
2026-08-22 20:59:25 +02:00
parent 985f481fae
commit ae35f61522
4 changed files with 44 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
const {
collectCookies
} = require(
"../../commands/applications/cookies"
);
module.exports = {
name:
"crumbSaucerCollect",
async execute(
interaction
) {
return collectCookies(
interaction
);
}
};
+1 -1
View File
@@ -197,7 +197,7 @@ async function collect(interaction) {
let amount = let amount =
randomInteger( randomInteger(
1, 1,
200 1000
); );
+8 -3
View File
@@ -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
) )
); );
+7 -1
View File
@@ -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)
) )
]; ];
} }