Skip to content

Commit

Permalink
Merge pull request #6585 from LandSandBoat/luacheck/styling
Browse files Browse the repository at this point in the history
Use local vars, format tables for Glittering Ruby, Zipacna
  • Loading branch information
claywar authored Dec 24, 2024
2 parents 5780a90 + 1f74478 commit 33519ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripts/actions/abilities/pets/glittering_ruby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ abilityObject.onPetAbility = function(target, pet, petskill, summoner, action)
xi.effect.CHR_BOOST,
}

effectId = utils.randomEntry(effects)
effectPower = math.random(12, 14)
local effectId = utils.randomEntry(effects)
local effectPower = math.random(12, 14)

xi.job_utils.summoner.onUseBloodPact(target, petskill, summoner, action)

Expand Down
4 changes: 2 additions & 2 deletions scripts/actions/mobskills/glittering_ruby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ mobskillObject.onMobWeaponSkill = function(target, mob, skill)
xi.effect.CHR_BOOST,
}

effectId = utils.randomEntry(effects)
effectPower = math.random(12, 14)
local effectId = utils.randomEntry(effects)
local effectPower = math.random(12, 14)

target:addStatusEffect(effectId, effectPower, 0, 90)
skill:setMsg(xi.msg.basic.SKILL_GAIN_EFFECT)
Expand Down
8 changes: 4 additions & 4 deletions scripts/zones/VeLugannon_Palace/mobs/Zipacna.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ local ID = zones[xi.zone.VELUGANNON_PALACE]
-- Spawn points from nm_spawn_points.sql
local spawnPoints =
{
blueShort = {x = -196, y = 0, z = 389},
blueLong = {x = -121, y = 16, z = 420},
yellowShort = {x = 191, y = 0, z = 399},
yellowLong = {x = 141, y = 16, z = 440},
blueShort = { x = -196, y = 0, z = 389 },
blueLong = { x = -121, y = 16, z = 420 },
yellowShort = { x = 191, y = 0, z = 399 },
yellowLong = { x = 141, y = 16, z = 440 },
}

local pathingDirection =
Expand Down

0 comments on commit 33519ad

Please sign in to comment.