From 133b4478c7632578d014f988dd85835c3b355e3c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 4 Jan 2025 10:56:11 +0000 Subject: [PATCH] Lua code format - (Stylua) --- data-global/npc/flint.lua | 2 +- data-global/npc/thorgrin.lua | 6 +++--- data/scripts/lib/shops.lua | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/data-global/npc/flint.lua b/data-global/npc/flint.lua index 3c22aee6..e8c83e70 100644 --- a/data-global/npc/flint.lua +++ b/data-global/npc/flint.lua @@ -162,4 +162,4 @@ end -- On check npc shop message (look item) npcType.onCheckItem = function(npc, player, clientId, subType) end -npcType:register(npcConfig) \ No newline at end of file +npcType:register(npcConfig) diff --git a/data-global/npc/thorgrin.lua b/data-global/npc/thorgrin.lua index 48eba786..febc93e0 100644 --- a/data-global/npc/thorgrin.lua +++ b/data-global/npc/thorgrin.lua @@ -53,9 +53,9 @@ end -- Travel local function addTravelKeyword(keyword, cost, destination, text, action, discount) - local travelKeyword = keywordHandler:addKeyword({ keyword }, StdModule.say, { npcHandler = npcHandler, text = text or "Do you seek a ride to " .. keyword:titleCase() .. " for |TRAVELCOST|?", cost = cost, discount = discount or "postman" }) - travelKeyword:addChildKeyword({ "yes" }, StdModule.travel, { npcHandler = npcHandler, premium = false, cost = cost, discount = discount or "postman", destination = destination, text = "Full steam ahead!" }, nil, action) - travelKeyword:addChildKeyword({ "no" }, StdModule.say, { npcHandler = npcHandler, text = "Then not", reset = true }) + local travelKeyword = keywordHandler:addKeyword({ keyword }, StdModule.say, { npcHandler = npcHandler, text = text or "Do you seek a ride to " .. keyword:titleCase() .. " for |TRAVELCOST|?", cost = cost, discount = discount or "postman" }) + travelKeyword:addChildKeyword({ "yes" }, StdModule.travel, { npcHandler = npcHandler, premium = false, cost = cost, discount = discount or "postman", destination = destination, text = "Full steam ahead!" }, nil, action) + travelKeyword:addChildKeyword({ "no" }, StdModule.say, { npcHandler = npcHandler, text = "Then not", reset = true }) end addTravelKeyword("kazordoon", 210, Position(32659, 31957, 15)) diff --git a/data/scripts/lib/shops.lua b/data/scripts/lib/shops.lua index 5f43b62d..8c389349 100644 --- a/data/scripts/lib/shops.lua +++ b/data/scripts/lib/shops.lua @@ -1,4 +1,3 @@ - SupplyShopConfigTable = { ["foods"] = { { itemName = "brown mushroom", clientId = 3725, buy = 10 },