From f47a929a5d50eae55d105f2b48b2b476934453e6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 26 Apr 2024 13:36:40 +0000 Subject: [PATCH] Lua code format - (Stylua) --- data/modules/scripts/gamestore/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/modules/scripts/gamestore/init.lua b/data/modules/scripts/gamestore/init.lua index 5af32a07b69..7d9081df1fb 100644 --- a/data/modules/scripts/gamestore/init.lua +++ b/data/modules/scripts/gamestore/init.lua @@ -409,13 +409,13 @@ function parseBuyStoreOffer(playerId, msg) -- All guarding conditions under which the offer should not be processed must be included here if - not table.contains(GameStore.OfferTypes, offer.type) -- we've got an invalid offer type + not table.contains(GameStore.OfferTypes, offer.type) -- we've got an invalid offer type or not player or (player:getVocation():getId() == 0) and (not GameStore.haveOfferRook(id)) -- we don't have such offer or not offer or (offer.type == GameStore.OfferTypes.OFFER_TYPE_NONE) -- offer is disabled or ( - offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE + offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_EXPBOOST and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYBONUS and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYSLOT @@ -429,7 +429,7 @@ function parseBuyStoreOffer(playerId, msg) and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HIRELING_SKILL and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HIRELING_OUTFIT and not offer.id - ) + ) then return queueSendStoreAlertToUser("This offer is unavailable [1]", 350, playerId, GameStore.StoreErrors.STORE_ERROR_INFORMATION) end @@ -631,7 +631,7 @@ function Player.canBuyOffer(self, offer) end if - offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE + offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_EXPBOOST and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYSLOT and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HUNTINGSLOT