Skip to content

Commit

Permalink
fix(server/shops): randomprices when currency is explicitly set as mo…
Browse files Browse the repository at this point in the history
…ney (#1496)
  • Loading branch information
ItzTrivial authored Nov 15, 2023
1 parent e5102f7 commit b6f329e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/shops/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local function setupShopItems(id, shopType, shopName, groups)
slot = i,
weight = Item.weight,
count = slot.count,
price = (server.randomprices and not slot.currency or slot.currency == 'money') and (math.ceil(slot.price * (math.random(80, 120)/100))) or slot.price or 0,
price = (server.randomprices and (not slot.currency or slot.currency == 'money')) and (math.ceil(slot.price * (math.random(80, 120)/100))) or slot.price or 0,
metadata = slot.metadata,
license = slot.license,
currency = slot.currency,
Expand Down

0 comments on commit b6f329e

Please sign in to comment.