Skip to content

Commit

Permalink
fix: gamestore task hunting third slot (#2250)
Browse files Browse the repository at this point in the history
Fix permanent hunting task slot.
Fixes #2237
  • Loading branch information
Nyedson authored Feb 17, 2024
1 parent 274ecd7 commit bbb8e4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/modules/scripts/gamestore/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ function parseBuyStoreOffer(playerId, msg)
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_EXPBOOST
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYBONUS
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYSLOT
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HUNTINGSLOT
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_TEMPLE
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_SEXCHANGE
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_INSTANT_REWARD_ACCESS
Expand Down Expand Up @@ -472,6 +473,8 @@ function parseBuyStoreOffer(playerId, msg)
GameStore.processSexChangePurchase(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
GameStore.processExpBoostPuchase(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_HUNTINGSLOT then
GameStore.processTaskHuntingThirdSlot(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_PREYSLOT then
GameStore.processPreyThirdSlot(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_PREYBONUS then
Expand Down Expand Up @@ -625,6 +628,7 @@ function Player.canBuyOffer(self, offer)
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
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYBONUS
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_TEMPLE
and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_SEXCHANGE
Expand Down

0 comments on commit bbb8e4a

Please sign in to comment.