Fix Trade command not giving a card if they don't already have it in their inventory
All checks were successful
Test / build (push) Successful in 9s

This commit is contained in:
Ethan Lane 2024-10-12 20:51:22 +01:00
parent 65a55895e7
commit ffdf2eb04c
2 changed files with 10 additions and 6 deletions

View file

@ -29,6 +29,10 @@ export default class Inventory extends AppBaseEntity {
this.Quantity = quantity;
}
public AddQuantity(amount: number) {
this.Quantity += amount;
}
public RemoveQuantity(amount: number) {
if (this.Quantity < amount) return;