Skip to content

Commit ef26123

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

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

scripts/specs/core/CBaseEntity.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3753,7 +3753,7 @@ end
37533753
function CBaseEntity:setSpawn(x, y, z, rot)
37543754
end
37553755

3756-
---@param bool isFixed
3756+
---@param boolean isFixed
37573757
---return nil
37583758
function CBaseEntity:setFixedSpawnPosition(isFixed)
37593759
end

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)