Update drop mechanic to take currency on drop instead of claim

This commit is contained in:
Ethan Lane 2025-04-04 18:56:13 +01:00 committed by Vylpes
parent 0669dfb0d0
commit 99b0caa7e4
4 changed files with 15 additions and 14 deletions

View file

@ -36,11 +36,6 @@ export default class Claim extends ButtonEvent {
AppLogger.LogSilly("Button/Claim", `${user.Id} has ${user.Currency} currency`);
if (!user.RemoveCurrency(CardConstants.ClaimCost)) {
await interaction.channel.send(`${interaction.user}, Not enough currency! You need ${CardConstants.ClaimCost} currency, you have ${user.Currency}!`);
return;
}
const claimed = await eClaim.FetchOneByClaimId(claimId);
if (claimed) {
@ -53,8 +48,6 @@ export default class Claim extends ButtonEvent {
return;
}
await user.Save(User, user);
let inventory = await Inventory.FetchOneByCardNumberAndUserId(userId, cardNumber);
if (!inventory) {