From b6f329e70021f67f5f291a0a1f273ab0d07a8a8d Mon Sep 17 00:00:00 2001 From: Trivial <66124070+ItzTrivial@users.noreply.github.com> Date: Wed, 15 Nov 2023 05:20:28 +0100 Subject: [PATCH] fix(server/shops): randomprices when currency is explicitly set as money (#1496) --- modules/shops/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/shops/server.lua b/modules/shops/server.lua index fe90ecd48d..baf64113ab 100644 --- a/modules/shops/server.lua +++ b/modules/shops/server.lua @@ -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,