Skip to content

Commit

Permalink
Merge pull request #6662 from LandSandBoat/lua-ci-fixes
Browse files Browse the repository at this point in the history
Fix various lua styling errors
  • Loading branch information
claywar authored Jan 6, 2025
2 parents 0b16dec + 325931d commit 0a43e0e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/items/kingdom_earring.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-----------------------------------
-- ID: 16039
-- Kingdom Earring
-- Kingdom Earring
-- Enchantment: "Teleport" (Southern San d'Oria)
-----------------------------------
---@type TItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ entity.onMobFight = function(mob)
end

entity.onMobSpawn = function(mob)
originalDamage = mob:getMod(xi.mod.UDMGPHYS)
local lastPhase = nil

mob:addListener('WEAPONSKILL_USE', 'ANY_MOBSKILL_CHECK', function(mobArg, _, weaponSkill)
Expand Down
4 changes: 2 additions & 2 deletions scripts/zones/Yuhtunga_Jungle/Zone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ zoneObject.onZoneWeatherChange = function(weather)
if bayawak then
if weather == xi.weather.HOT_SPELL or weather == xi.weather.HEAT_WAVE then
DisallowRespawn(bayawak:getID(), false)

-- Spawn if respawn is up
if os.time() > bayawak:getLocalVar("respawn") then
if os.time() > bayawak:getLocalVar('respawn') then
SpawnMob(bayawak:getID())
end
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/zones/Yuhtunga_Jungle/mobs/Bayawak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
entity.onMobDespawn = function(mob)
local respawn = math.random(5400, 7200)
mob:setRespawnTime(respawn)
mob:setLocalVar("respawn", os.time() + respawn)
mob:setLocalVar('respawn', os.time() + respawn)
DisallowRespawn(mob:getID(), true) -- prevents accidental 'pop' during no fire weather and immediate despawn
UpdateNMSpawnPoint(mob:getID())
end
Expand Down

0 comments on commit 0a43e0e

Please sign in to comment.