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
+16 -11
View File
@@ -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
}
};
@@ -111,10 +114,10 @@ async function resolveCookieHeist(
if (
type !==
"cookieHeist"
"cookieHeist"
||
ownerId !==
interaction.user.id
interaction.user.id
) {
return temporaryEphemeralReply(
interaction,
@@ -132,7 +135,7 @@ async function resolveCookieHeist(
const method =
HEIST_METHODS[
methodName
methodName
];
@@ -231,10 +234,10 @@ async function resolveCookieHeist(
if (
playerCookies <
1
1
||
vaultCookies <
1
1
) {
return interaction.editReply({
embeds: [
@@ -571,6 +574,8 @@ async function resolveCookieHeist(
penaltyPercent
),
method.maxPenaltyAmount,
playerCookies
)
);
@@ -858,7 +863,7 @@ function getHeistProgressText(
methodName
) {
switch (
methodName
methodName
) {
case "Sneak":
return [
@@ -906,7 +911,7 @@ function getSuccessText(
switch (
methodName
methodName
) {
case "Sneak":
return (
@@ -950,7 +955,7 @@ function getFailureText(
switch (
methodName
methodName
) {
case "Sneak":
return [