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 Nov 25, 2023
1 parent 8c12f8c commit 7d2ae8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/jeronimo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ local OfferType = {
House = 3,
Utils = 4,
Outfit = 5,
Mount = 6
Mount = 6,
}

--local listShopItems = {
Expand Down Expand Up @@ -179,7 +179,6 @@ local function creatureSayCallback(npc, creature, type, message)
end

if (npcHandler:getTopic(playerId) == 2 or npcHandler:getTopic(playerId) == 0) and listShopItems[message] ~= nil then

local selected = listShopItems[message]
if amountTournamentCoins < selected.value then
npcHandler:say(string.format("You don't have %i {%s}!", selected.value, tournamentCoinName), npc, creature)
Expand Down Expand Up @@ -260,7 +259,6 @@ local function creatureSayCallback(npc, creature, type, message)
local itemT = ItemType(selected.id)
if amountTournamentCoins >= selected.value then
if inbox and inbox:getEmptySlots() > 0 and player:getFreeCapacity() >= itemT:getCapacity() then

player:updateTournamentCoins(selected.value, "remove")

if selected.charges > 0 then
Expand Down
2 changes: 1 addition & 1 deletion data/modules/scripts/gamestore/gamestore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6725,7 +6725,7 @@ GameStore.Categories = {
type = GameStore.OfferTypes.OFFER_TYPE_HOUSE,
coinType = GameStore.CoinType.Tournament,
},
}
},
},
-- Tournament Shop ~ House Furniture
{
Expand Down

0 comments on commit 7d2ae8f

Please sign in to comment.