Create ability to drop multiple cards in a row (#376)
- Create a `/multidrop` command - This will take the price of 10 drops from you and give you 11 cards to sort through - You then have a choice to keep the card or sacrifice it - Create the `multidrop keep` and `multidrop sacrifice` button events #262 Reviewed-on: #376 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
f4c02d3613
commit
8352b377bb
8 changed files with 348 additions and 11 deletions
|
@ -58,7 +58,7 @@ export default class Claim extends ButtonEvent {
|
|||
if (!inventory) {
|
||||
inventory = new Inventory(userId, cardNumber, 1);
|
||||
} else {
|
||||
inventory.SetQuantity(inventory.Quantity + 1);
|
||||
inventory.AddQuantity(1);
|
||||
}
|
||||
|
||||
await inventory.Save(Inventory, inventory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue