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 =
|
||||
randomInteger(
|
||||
1,
|
||||
200
|
||||
1000
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ const HEIST_METHODS = {
|
||||
maxStealAmount: 1500,
|
||||
|
||||
minPenaltyPercent: 0.01,
|
||||
maxPenaltyPercent: 0.04
|
||||
maxPenaltyPercent: 0.04,
|
||||
maxPenaltyAmount: 750
|
||||
},
|
||||
|
||||
Hack: {
|
||||
@@ -59,7 +60,8 @@ const HEIST_METHODS = {
|
||||
maxStealAmount: 3500,
|
||||
|
||||
minPenaltyPercent: 0.03,
|
||||
maxPenaltyPercent: 0.07
|
||||
maxPenaltyPercent: 0.07,
|
||||
maxPenaltyAmount: 2000
|
||||
},
|
||||
|
||||
Smash: {
|
||||
@@ -70,7 +72,8 @@ const HEIST_METHODS = {
|
||||
maxStealAmount: 7500,
|
||||
|
||||
minPenaltyPercent: 0.06,
|
||||
maxPenaltyPercent: 0.12
|
||||
maxPenaltyPercent: 0.12,
|
||||
maxPenaltyAmount: 5000
|
||||
}
|
||||
};
|
||||
|
||||
@@ -571,6 +574,8 @@ async function resolveCookieHeist(
|
||||
penaltyPercent
|
||||
),
|
||||
|
||||
method.maxPenaltyAmount,
|
||||
|
||||
playerCookies
|
||||
)
|
||||
);
|
||||
|
||||
@@ -102,7 +102,13 @@ function buildMainMenuButtons() {
|
||||
.setCustomId("abort")
|
||||
.setLabel("Close")
|
||||
.setEmoji("✖️")
|
||||
.setStyle(ButtonStyle.Secondary)
|
||||
.setStyle(ButtonStyle.Secondary),
|
||||
|
||||
new ButtonBuilder()
|
||||
.setCustomId("crumbSaucerCollect")
|
||||
.setLabel("Collect")
|
||||
.setEmoji("🍪")
|
||||
.setStyle(ButtonStyle.Success)
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user