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
All checks were successful
Test / build (push) Successful in 9s
This commit is contained in:
parent
65a55895e7
commit
ffdf2eb04c
2 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue