Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Vylpes committed Oct 12, 2024
2 parents 8352b37 + f812467 commit 76af70d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# any secret values.

BOT_TOKEN=
BOT_VER=0.8.1
BOT_VER=0.8.2
BOT_AUTHOR=Vylpes
BOT_OWNERID=147392775707426816
BOT_CLIENTID=682942374040961060
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "card-drop",
"version": "0.8.1",
"version": "0.8.2",
"main": "./dist/bot.js",
"typings": "./dist",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/database/entities/app/Inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 76af70d

Please sign in to comment.