Skip to content

Commit b6833ab

Browse files
[lua] Set Eschan Gargouille and Groundskeeper to have fixed spawns
1 parent 210447a commit b6833ab

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/zones/Escha_RuAun/mobs/Eschan_Gargouille.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
---@type TMobEntity
66
local entity = {}
77

8+
entity.onMobInitialize = function(mob)
9+
mob:setFixedSpawnPosition(true)
10+
end
11+
812
entity.onMobSpawn = function(mob)
913
mob:hideName(true)
1014
mob:setUntargetable(true)

scripts/zones/RuAun_Gardens/mobs/Groundskeeper.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ local ID = zones[xi.zone.RUAUN_GARDENS]
88
---@type TMobEntity
99
local entity = {}
1010

11+
entity.onMobInitialize = function(mob)
12+
mob:setFixedSpawnPosition(true) -- TODO: change this to only apply to "wall" groundskeepers
13+
end
14+
1115
entity.onMobDeath = function(mob, player, optParams)
1216
xi.regime.checkRegime(player, mob, 143, 2, xi.regime.type.FIELDS)
1317
xi.regime.checkRegime(player, mob, 144, 1, xi.regime.type.FIELDS)

0 commit comments

Comments
 (0)