Skip to content

Commit 3787e60

Browse files
authored
[lua] Mandragora Skill Audit (#9287)
Updates Mandragora TP Moves with information from Jimmys sheet
1 parent 6e38622 commit 3787e60

File tree

7 files changed

+35
-29
lines changed

7 files changed

+35
-29
lines changed

scripts/actions/mobskills/dream_flower.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mobskillObject.onMobSkillCheck = function(target, mob, skill)
1010
end
1111

1212
mobskillObject.onMobWeaponSkill = function(target, mob, skill)
13-
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.SLEEP_I, 1, 0, math.random(20, 30)))
13+
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.SLEEP_I, 1, 0, math.random(15, 60)))
1414

1515
return xi.effect.SLEEP_I
1616
end

scripts/actions/mobskills/head_butt.lua

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-----------------------------------
22
-- Head Butt
3-
-- Description: Damage varies with TP. Additional effect: "Stun."
3+
-- Description: Deals blunt damage to a single target.
44
-- Type: Physical (Blunt)
55
-----------------------------------
66
---@type TMobSkill
@@ -12,12 +12,10 @@ end
1212

1313
mobskillObject.onMobWeaponSkill = function(target, mob, skill)
1414
local numhits = 1
15-
local accmod = 1
16-
local ftp = 1.5
17-
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, ftp, xi.mobskills.physicalTpBonus.NO_EFFECT, 0, 0, 0)
18-
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.BLUNT, info.hitslanded)
19-
20-
xi.mobskills.mobPhysicalStatusEffectMove(mob, target, skill, xi.effect.STUN, 1, 0, 4)
15+
local accmod = 1
16+
local ftp = 2
17+
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, ftp, xi.mobskills.physicalTpBonus.NO_EFFECT, 0, 0, 0)
18+
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.BLUNT, info.hitslanded)
2119

2220
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.BLUNT)
2321
return dmg

scripts/actions/mobskills/leaf_dagger.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
-- Leaf Dagger
33
--
44
-- Description: Deals piercing damage to a single target. Additional effect: Poison
5-
-- Type: Physical
6-
-- Utsusemi/Blink absorb: 2 shadows
7-
-- Range: Melee?
5+
-- Type: Physical (Ranged)
86
-- Notes: On higher level Madragoras (Korrigans for example) the poision is 5hp/tick for about 5-6 ticks, damaging a total of 25-30 HP.
7+
-- TODO: Should be subject to ranged penalties.
98
-----------------------------------
109
---@type TMobSkill
1110
local mobskillObject = {}
@@ -15,16 +14,17 @@ mobskillObject.onMobSkillCheck = function(target, mob, skill)
1514
end
1615

1716
mobskillObject.onMobWeaponSkill = function(target, mob, skill)
18-
local numhits = 2
19-
local accmod = 1
20-
local ftp = 1.4
21-
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, ftp, xi.mobskills.physicalTpBonus.NO_EFFECT)
22-
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.PIERCING, info.hitslanded)
23-
local power = math.max(1, mob:getMainLvl() / 10)
24-
25-
xi.mobskills.mobPhysicalStatusEffectMove(mob, target, skill, xi.effect.POISON, power, 3, 18)
17+
local numhits = 1
18+
local accmod = 1
19+
local ftp = 2
20+
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, ftp, xi.mobskills.physicalTpBonus.NO_EFFECT)
21+
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.PIERCING, info.hitslanded)
22+
local power = math.max(1, mob:getMainLvl() / 10)
2623

2724
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.PIERCING)
25+
26+
xi.mobskills.mobPhysicalStatusEffectMove(mob, target, skill, xi.effect.POISON, power, 3, 90)
27+
2828
return dmg
2929
end
3030

scripts/actions/mobskills/photosynthesis.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ end
2626
mobskillObject.onMobWeaponSkill = function(target, mob, skill)
2727
local power = math.floor(mob:getMainLvl() / 10)
2828

29-
skill:setMsg(xi.mobskills.mobBuffMove(mob, xi.effect.REGEN, power, 0, 180))
29+
skill:setMsg(xi.mobskills.mobBuffMove(mob, xi.effect.REGEN, power, 0, 120))
3030

3131
return xi.effect.REGEN
3232
end

scripts/actions/mobskills/scream.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mobskillObject.onMobSkillCheck = function(target, mob, skill)
1010
end
1111

1212
mobskillObject.onMobWeaponSkill = function(target, mob, skill)
13-
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.MND_DOWN, 10, 3, 120))
13+
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.MND_DOWN, 10, 3, 180))
1414

1515
return xi.effect.MND_DOWN
1616
end

scripts/actions/mobskills/wild_oats.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ mobskillObject.onMobSkillCheck = function(target, mob, skill)
1111
end
1212

1313
mobskillObject.onMobWeaponSkill = function(target, mob, skill)
14-
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.VIT_DOWN, 10, 3, 120))
14+
local numhits = 1
15+
local accmod = 1
16+
local ftp = 1
17+
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, ftp, xi.mobskills.physicalTpBonus.NO_EFFECT)
18+
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.PIERCING, info.hitslanded)
1519

16-
return xi.effect.VIT_DOWN
20+
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.PIERCING)
21+
22+
xi.mobskills.mobPhysicalStatusEffectMove(mob, target, skill, xi.effect.VIT_DOWN, 10, 3, 120)
23+
24+
return dmg
1725
end
1826

1927
return mobskillObject

sql/mob_skills.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,13 @@ INSERT INTO `mob_skills` VALUES (295,39,'magic_fruit',0,0.0,7.0,2000,1500,1,0,0,
324324
-- INSERT INTO `mob_skills` VALUES (297,41,'pinecone_bomb',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
325325
-- INSERT INTO `mob_skills` VALUES (298,42,'leafstorm',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
326326
INSERT INTO `mob_skills` VALUES (299,76,'entangle_drain',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
327-
INSERT INTO `mob_skills` VALUES (300,44,'head_butt',0,0.0,7.0,1500,1500,4,0,0,0,0,0,0);
328-
INSERT INTO `mob_skills` VALUES (301,45,'dream_flower',1,0.0,15.0,2000,1500,4,0,0,0,0,0,0);
329-
INSERT INTO `mob_skills` VALUES (302,46,'wild_oats',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
327+
INSERT INTO `mob_skills` VALUES (300,44,'head_butt',0,0.0,7.0,1500,800,4,0,0,0,0,0,0);
328+
INSERT INTO `mob_skills` VALUES (301,45,'dream_flower',1,0.0,15.0,2000,1200,4,0,0,0,0,0,0);
329+
INSERT INTO `mob_skills` VALUES (302,46,'wild_oats',0,0.0,7.0,2000,800,4,0,0,0,0,0,0);
330330
-- INSERT INTO `mob_skills` VALUES (303,47,'hundred_fists',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
331-
INSERT INTO `mob_skills` VALUES (304,48,'photosynthesis',0,0.0,7.0,2000,1500,1,0,0,0,0,0,0);
332-
INSERT INTO `mob_skills` VALUES (305,49,'leaf_dagger',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
333-
INSERT INTO `mob_skills` VALUES (306,50,'scream',1,0.0,15.0,2000,1500,4,0,0,0,0,0,0);
331+
INSERT INTO `mob_skills` VALUES (304,48,'photosynthesis',0,0.0,7.0,2000,800,1,0,0,0,0,0,0);
332+
INSERT INTO `mob_skills` VALUES (305,49,'leaf_dagger',0,0.0,7.0,2000,1200,4,0,0,0,0,0,0);
333+
INSERT INTO `mob_skills` VALUES (306,50,'scream',1,0.0,15.0,2000,800,4,0,0,0,0,0,0);
334334
INSERT INTO `mob_skills` VALUES (307,439,'substitute',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
335335
INSERT INTO `mob_skills` VALUES (308,52,'frogkick',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);
336336
INSERT INTO `mob_skills` VALUES (309,53,'spore',0,0.0,7.0,2000,1500,4,0,0,0,0,0,0);

0 commit comments

Comments
 (0)