Skip to content

Commit

Permalink
Merge branch 'main' into feature/badge-system
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Apr 26, 2024
2 parents 05b9c0b + a820101 commit ffcdec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/modules/scripts/gamestore/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function parseBuyStoreOffer(playerId, msg)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_SEXCHANGE then
GameStore.processSexChangePurchase(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_EXPBOOST then
GameStore.processExpBoostPuchase(player)
GameStore.processExpBoostPurchase(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_HUNTINGSLOT then
GameStore.processTaskHuntingThirdSlot(player)
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_PREYSLOT then
Expand Down Expand Up @@ -1768,7 +1768,7 @@ function GameStore.processSexChangePurchase(player)
player:toggleSex()
end

function GameStore.processExpBoostPuchase(player)
function GameStore.processExpBoostPurchase(player)
local currentExpBoostTime = player:getExpBoostStamina()
local expBoostCount = player:getStorageValue(GameStore.Storages.expBoostCount)

Expand Down
3 changes: 1 addition & 2 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1945,8 +1945,7 @@ void Player::onWalk(Direction &dir) {

Creature::onWalk(dir);
setNextActionTask(nullptr);
setNextAction(OTSYS_TIME() + getStepDuration(dir));


g_callbacks().executeCallback(EventCallback_t::playerOnWalk, &EventCallback::playerOnWalk, getPlayer(), dir);
}

Expand Down

0 comments on commit ffcdec3

Please sign in to comment.