Skip to content

Commit 210447a

Browse files
[lua] set most Zdei to have fixed spawn positions
1 parent 2a51b4d commit 210447a

File tree

8 files changed

+30
-0
lines changed

8 files changed

+30
-0
lines changed

scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eozdei.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ mixins = { require('scripts/mixins/families/zdei') }
77
---@type TMobEntity
88
local entity = {}
99

10+
entity.onMobInitialize = function(mob)
11+
mob:setFixedSpawnPosition(true)
12+
end
13+
1014
entity.onPath = function(mob)
1115
local spawnPos = mob:getSpawnPos()
1216
mob:pathThrough({ spawnPos.x, spawnPos.y, spawnPos.z })

scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eozdei_Still.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ mixins = { require('scripts/mixins/families/zdei') }
88
---@type TMobEntity
99
local entity = {}
1010

11+
entity.onMobInitialize = function(mob)
12+
mob:setFixedSpawnPosition(true)
13+
end
14+
1115
entity.onPath = function(mob)
1216
local spawnPos = mob:getSpawnPos()
1317
mob:pathThrough({ spawnPos.x, spawnPos.y, spawnPos.z })

scripts/zones/The_Garden_of_RuHmet/mobs/Awzdei.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ mixins = { require('scripts/mixins/families/zdei') }
77
---@type TMobEntity
88
local entity = {}
99

10+
entity.onMobInitialize = function(mob)
11+
mob:setFixedSpawnPosition(true)
12+
end
13+
1014
entity.onPath = function(mob)
1115
local spawnPos = mob:getSpawnPos()
1216
mob:pathThrough({ spawnPos.x, spawnPos.y, spawnPos.z })

scripts/zones/The_Garden_of_RuHmet/mobs/Awzdei_Fast.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ mixins = { require('scripts/mixins/families/zdei') }
77
---@type TMobEntity
88
local entity = {}
99

10+
entity.onMobInitialize = function(mob)
11+
mob:setFixedSpawnPosition(true)
12+
end
13+
1014
entity.onPath = function(mob)
1115
local spawnPos = mob:getSpawnPos()
1216
mob:pathThrough({ spawnPos.x, spawnPos.y, spawnPos.z })

scripts/zones/The_Garden_of_RuHmet/mobs/Awzdei_Still.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ mixins = { require('scripts/mixins/families/zdei') }
77
---@type TMobEntity
88
local entity = {}
99

10+
entity.onMobInitialize = function(mob)
11+
mob:setFixedSpawnPosition(true)
12+
end
13+
1014
entity.onPath = function(mob)
1115
local spawnPos = mob:getSpawnPos()
1216
mob:pathThrough({ spawnPos.x, spawnPos.y, spawnPos.z })

scripts/zones/The_Garden_of_RuHmet/mobs/Ixzdei_BLM.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ mixins = { require('scripts/mixins/job_special') }
99
---@type TMobEntity
1010
local entity = {}
1111

12+
entity.onMobInitialize = function(mob)
13+
mob:setFixedSpawnPosition(true)
14+
end
15+
1216
local chargeOptic = function(mob)
1317
mob:setAutoAttackEnabled(false)
1418
mob:setMobAbilityEnabled(false)

scripts/zones/The_Garden_of_RuHmet/mobs/Ixzdei_RDM.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ local chargeOptic = function(mob)
2525
end
2626
end
2727

28+
entity.onMobInitialize = function(mob)
29+
mob:setFixedSpawnPosition(true)
30+
end
31+
2832
entity.onMobSpawn = function(mob)
2933
xi.mix.jobSpecial.config(mob, {
3034
specials =

scripts/zones/The_Garden_of_RuHmet/mobs/Qnzdei.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ entity.onMobInitialize = function(mob)
3434
if subLinkValue then
3535
mob:setMobMod(xi.mobMod.SUBLINK, subLinkValue)
3636
end
37+
38+
mob:setFixedSpawnPosition(true)
3739
end
3840

3941
local changeState = function(mob, idle)

0 commit comments

Comments
 (0)