Skip to content

Commit

Permalink
Merge pull request #5735 from ampitere/add_fuscous_ooze_encumbrance_e…
Browse files Browse the repository at this point in the history
…ffect

[LUA] Add Fuscous Ooze's encumbrance effect
  • Loading branch information
claywar authored May 15, 2024
2 parents 26a2fb0 + 59c6dcd commit c34b1e9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/actions/mobskills/fuscous_ooze.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-----------------------------------
-- Fuscous Ooze
-- Family: Slugs
-- Description: A dusky slime inflicts encumberance and weight.
-- Description: A dusky slime inflicts encumbrance and weight.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Cone
Expand All @@ -13,8 +13,11 @@ mobskillObject.onMobSkillCheck = function(target, mob, skill)
end

mobskillObject.onMobWeaponSkill = function(target, mob, skill)
-- TODO: Encumberance seems to do nothing?
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.WEIGHT, 50, 0, 45)
local power = math.random(1, 16)
local duration = math.random(30, 45)

xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.ENCUMBRANCE_II, power, 0, duration)
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.WEIGHT, 50, 0, duration)

local dmgmod = 1
local baseDamage = mob:getWeaponDmg() * 3.7
Expand Down

0 comments on commit c34b1e9

Please sign in to comment.