Skip to content

Commit

Permalink
Merge branch 'main' into release/v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
itinerare committed Feb 18, 2024
2 parents cbe36ce + a4ab8b7 commit b1555df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Services/ShopManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function buyStock($data, $user) {
throw new \Exception('You have already purchased the maximum amount of this item you can buy.');
}

if($shopStock->purchase_limit && $quantity > $shopStock->purchase_limit) throw new \Exception("The quantity specified exceeds the amount of this item you can buy.");

$total_cost = $shopStock->cost * $quantity;

$character = null;
Expand Down

0 comments on commit b1555df

Please sign in to comment.