Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various lua styling errors #6662

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading