Skip to content

Commit

Permalink
Merge pull request #6824 from Xaver-DaRed/fht
Browse files Browse the repository at this point in the history
Cleanup Ghelsba Outpost mob scripts and add logic to Cyranuce M Cutauleon mob
  • Loading branch information
zach2good authored Jan 25, 2025
2 parents 9e6441a + 373489c commit 5452d6b
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 91 deletions.
2 changes: 1 addition & 1 deletion scripts/actions/mobskills/dread_shriek.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mobskillObject.onMobSkillCheck = function(target, mob, skill)
end

mobskillObject.onMobWeaponSkill = function(target, mob, skill)
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.PARALYSIS, 25, 0, 60))
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.PARALYSIS, 100, 0, 60))

return xi.effect.PARALYSIS
end
Expand Down
3 changes: 1 addition & 2 deletions scripts/effects/paralysis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local effectObject = {}

effectObject.onEffectGain = function(target, effect)
target:addMod(xi.mod.PARALYZE, effect:getPower())
effect:addMod(xi.mod.PARALYZE, effect:getPower())

-- Immunobreak reset.
target:setMod(xi.mod.PARALYZE_IMMUNOBREAK, 0)
Expand All @@ -15,7 +15,6 @@ effectObject.onEffectTick = function(target, effect)
end

effectObject.onEffectLose = function(target, effect)
target:delMod(xi.mod.PARALYZE, effect:getPower())
end

return effectObject
11 changes: 11 additions & 0 deletions scripts/enum/mob_skills.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ xi.mobSkill =

RANGED_ATTACK_2 = 412,

DISPELLING_WIND = 813,
DEADLY_DRIVE = 814,
WIND_WALL = 815,
FANG_RUSH = 816,
DREAD_SHRIEK = 817,
TAIL_CRUSH = 818,
BLIZZARD_BREATH = 819,
THUNDER_BREATH = 820,
RADIANT_BREATH = 821,
CHAOS_BREATH = 822,

LIGHT_BLADE_1 = 830,

HOWLING_MOON_1 = 838, -- Unknown usage.
Expand Down
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Colo-colo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ entity.onMobSpawn = function(mob)
mob:setMobMod(xi.mobMod.SOUND_RANGE, 15)
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
10 changes: 9 additions & 1 deletion scripts/zones/Ghelsba_Outpost/mobs/Cyranuce_M_Cutauleon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
---@type TMobEntity
local entity = {}

entity.onMobDeath = function(mob, player, optParams)
entity.onMobInitialize = function(mob)
mob:addImmunity(xi.immunity.LIGHT_SLEEP)
mob:addImmunity(xi.immunity.DARK_SLEEP)
end

entity.onMobWeaponSkillPrepare = function(mob, target)
if mob:getHPP() <= 15 then
return xi.mobSkill.CHAOS_BREATH
end
end

return entity
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Fodderchief_Vokdek.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ entity.onMobInitialize = function(mob)
mob:setMobMod(xi.mobMod.GIL_MAX, -1)
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Furies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ entity.onMobSpawn = function(mob)
mob:setMobMod(xi.mobMod.CHARMABLE, 1)
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Kalamainu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ entity.onMobWeaponSkill = function(mob, target, skill)
end
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Kilioa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ entity.onMobWeaponSkill = function(mob, target, skill)
end
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Orcish_Grunt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ local thousandarmPHTable =
[ID.mob.THOUSANDARM_DESHGLESH - 7] = ID.mob.THOUSANDARM_DESHGLESH, -- 98.658 -0.319 328.269
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, thousandarmPHTable, 5, 3600) -- 1 hour minimum
end
Expand Down
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Orcish_Neckchopper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ local thousandarmPHTable =
[ID.mob.THOUSANDARM_DESHGLESH - 1] = ID.mob.THOUSANDARM_DESHGLESH, -- 123.357 -0.102 332.706
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, thousandarmPHTable, 5, 3600) -- 1 hour minimum
end
Expand Down
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Orcish_Stonechucker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ local thousandarmPHTable =
[ID.mob.THOUSANDARM_DESHGLESH - 2] = ID.mob.THOUSANDARM_DESHGLESH, -- 82.000 -0.500 366.000
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, thousandarmPHTable, 5, 3600) -- 1 hour minimum
end
Expand Down
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Strongarm_Zodvad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ entity.onMobInitialize = function(mob)
mob:setMobMod(xi.mobMod.GIL_MAX, -1)
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
3 changes: 0 additions & 3 deletions scripts/zones/Ghelsba_Outpost/mobs/Sureshot_Snatgat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ entity.onMobInitialize = function(mob)
mob:setMobMod(xi.mobMod.GIL_MAX, -1)
end

entity.onMobDeath = function(mob, player, optParams)
end

return entity
12 changes: 0 additions & 12 deletions scripts/zones/Ghelsba_Outpost/mobs/Toadbolster.lua

This file was deleted.

12 changes: 0 additions & 12 deletions scripts/zones/Ghelsba_Outpost/mobs/Toadcushion.lua

This file was deleted.

12 changes: 0 additions & 12 deletions scripts/zones/Ghelsba_Outpost/mobs/Toadpillow.lua

This file was deleted.

12 changes: 0 additions & 12 deletions scripts/zones/Ghelsba_Outpost/mobs/Toadsquab.lua

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/zones/Ghelsba_Outpost/mobs/Warchief_Vatgit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@
local entity = {}

entity.onMobDeath = function(mob, player, optParams)
if
player:getCurrentMission(player:getNation()) == xi.mission.id.nation.RANK2 and
player:getNation() == xi.nation.WINDURST
then
if player:getMissionStatus(player:getNation()) == 4 then
player:setMissionStatus(player:getNation(), 5)
end
end

player:addTitle(xi.title.WARCHIEF_WRECKER)
end

Expand Down

0 comments on commit 5452d6b

Please sign in to comment.