Skip to content

Commit

Permalink
Lua code format - (Stylua)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 26, 2024
1 parent 72cf366 commit f47a929
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/modules/scripts/gamestore/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f47a929

Please sign in to comment.