Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 15 additions & 24 deletions modules/abyssea/sql/job_adjustments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,6 @@ UPDATE merits SET upgrade = 0 WHERE name = 'animus_solace';
-- Animus Misery: Disable merit upgrades
UPDATE merits SET upgrade = 0 WHERE name = 'animus_misery';

------------------------------------
-- WHM Spell Cast Times
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(02/13/2012)
------------------------------------

-- Esuna: Revert cast time from 1 to 3 seconds
UPDATE spell_list SET castTime = 3000 WHERE name = 'esuna';

-- Sacrifice: Revert cast time from 1 to 1.5 seconds
UPDATE spell_list SET castTime = 1500 WHERE name = 'sacrifice';

-- Blindna: Revert cast time from 1 to 3 seconds
UPDATE spell_list SET castTime = 3000 WHERE name = 'blindna';

-- Cursna: Revert cast time from 1 to 3 seconds
UPDATE spell_list SET castTime = 3000 WHERE name = 'cursna';

------------------------------------
-- Thief
------------------------------------
Expand Down Expand Up @@ -155,6 +138,21 @@ UPDATE abilities SET recastTime = 900 WHERE name = 'killer_instinct';
-- Killer Instinct merit: Revert value to 150 seconds per level
UPDATE merits SET value = 150 WHERE name = 'killer_instinct';

-- Mazurka: Revert to town/field only
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(09/08/2010)
SET @TYPE_CITY = 1;
SET @TYPE_OUTDOORS = 2;
SET @MISC_MAZURKA = 8;

-- Remove mazurka from all zones
UPDATE zone_settings
SET misc = misc & ~@MISC_MAZURKA;

-- Reapply to cities and outdoor zones
UPDATE zone_settings
SET misc = misc | @MISC_MAZURKA
WHERE (zonetype & (@TYPE_CITY | @TYPE_OUTDOORS)) <> 0;

------------------------------------
-- Samurai
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(02/13/2012)
Expand Down Expand Up @@ -211,13 +209,6 @@ UPDATE abilities SET recastTime = 300 WHERE name = 'yonin';
-- Innin: Revert recast from 3 minutes to 5 minutes and add shared cooldown with Yonin
UPDATE abilities SET recastTime = 300, recastId = 146 WHERE name = 'innin';

-- Tonko: Ichi: Revert cast time from 1.5 to 4 seconds
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(02/13/2012)
UPDATE spell_list SET castTime = 4000 WHERE name = 'tonko_ichi';

-- Monomi: Ichi: Revert cast time from 1.5 to 4 seconds
UPDATE spell_list SET castTime = 4000 WHERE name = 'monomi_ichi';

-----------------------------------
-- Dragoon
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(02/13/2012)
Expand Down
74 changes: 74 additions & 0 deletions modules/abyssea/sql/spell_adjustments.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
------------------------------------
-- Abyssea Spell SQL Adjustments
-- This module reverts relevant spells to their pre-Abyssea values
------------------------------------

------------------------------------
-- Healing Magic
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(02/13/2012)
------------------------------------

-- Esuna: Revert cast time from 1 to 3 seconds
UPDATE spell_list SET castTime = 3000 WHERE name = 'esuna';

-- Sacrifice: Revert cast time from 1 to 1.5 seconds
UPDATE spell_list SET castTime = 1500 WHERE name = 'sacrifice';

-- Blindna: Revert cast time from 1 to 3 seconds
UPDATE spell_list SET castTime = 3000 WHERE name = 'blindna';

-- Cursna: Revert cast time from 1 to 3 seconds
UPDATE spell_list SET castTime = 3000 WHERE name = 'cursna';

------------------------------------
-- Enhancing Magic
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(12/14/2011)
------------------------------------

-- Regen: Revert cast time from 1.5 to 4 seconds
UPDATE spell_list SET castTime = 4000 WHERE name = 'regen';

-- Regen II: Revert cast time from 1.75 to 4.5 seconds
UPDATE spell_list SET castTime = 4500 WHERE name = 'regen_ii';

-- Regen III: Revert cast time from 2 to 5 seconds
UPDATE spell_list SET castTime = 5000 WHERE name = 'regen_iii';

------------------------------------
-- Singing
-- Source: https://forum.square-enix.com/ffxi/threads/29150-December-13-2012-%28JST%29-Version-Update
-- Source: https://forum.square-enix.com/ffxi/threads/27883-dev1138-Bard-Job-Adjustments
------------------------------------

-- Etudes / Prelude / Sirvente / Dirge: Revert from AoE to single target and cast time to 4 seconds
UPDATE spell_list SET validTargets = 3, AOE = 0, castTime = 4000 WHERE name IN (
'foe_sirvente',
'adventurers_dirge',
'hunters_prelude',
'archers_prelude',
'sinewy_etude',
'dextrous_etude',
'vivacious_etude',
'quick_etude',
'learned_etude',
'spirited_etude',
'enchanting_etude',
'herculean_etude',
'uncanny_etude',
'vital_etude',
'swift_etude',
'sage_etude',
'logical_etude',
'bewitching_etude'
);

------------------------------------
-- Ninjutsu
-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(02/13/2012)
------------------------------------

-- Tonko: Ichi: Revert cast time from 1.5 to 4 seconds
UPDATE spell_list SET castTime = 4000 WHERE name = 'tonko_ichi';

-- Monomi: Ichi: Revert cast time from 1.5 to 4 seconds
UPDATE spell_list SET castTime = 4000 WHERE name = 'monomi_ichi';
73 changes: 10 additions & 63 deletions modules/rov/lua/job_adjustments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,25 +105,6 @@ end)
-- effect:addMod(xi.mod.HASTE_MAGIC, -6000)
-- end)

-----------------------------------
-- Red Mage
-----------------------------------

-- TODO: Blind II / Blind
-- Source: https://forum.square-enix.com/ffxi/threads/46531-Mar-26-2015-%28JST%29-Version-Update
-- - Remove fixed 180 duration, revert to between 80 and 300 seconds
-- - Potency: Blind: (User INT - Opponent MND + 60)/4 Blind II: (User INT - Opponent MND + 100)/4

-- TODO: Paralyze / Paralyze II
-- - Remove fixed 120 duration, revert to between 30 and 120 seconds

-- TODO: Poison / Poison II / Poisonga
-- - Revert potencies to pre-RoV values

-- TODO: Bio / Bio II / Bio III / Dia / Dia II / Dia III
-- Source: https://forum.square-enix.com/ffxi/threads/55263-April.-3-2019-%28JST%29-Version-Update
-- - Revert potencies to pre-RoV values

-----------------------------------
-- Paladin
-----------------------------------
Expand Down Expand Up @@ -151,23 +132,6 @@ m:addOverride('xi.effects.stoneskin.onEffectGain', function(target, effect)
end
end)

-----------------------------------
-- Dark Knight
-----------------------------------

-- Dread Spikes: Revert duration from 3 minutes to 1 minute.
-- Source: https://forum.square-enix.com/ffxi/threads/48564-Sep-16-2015-%28JST%29-Version-Update
m:addOverride('xi.effects.dread_spikes.onEffectGain', function(target, effect)
super(target, effect)
effect:setDuration(60000)
end)

-- TODO Absorb-STAT: Add decay tick and set 90 second duration to boost effects
-- TODO Drain II: Set duration of max HP boost to 60 seconds.
-- Source:
-- Decay Removal: http://forum.square-enix.com/ffxi/threads/46531-Mar-26-2015-%28JST%29-Version-Update
-- Duration Change: https://forum.square-enix.com/ffxi/threads/48564-Sep-16-2015-%28JST%29-Version-Update

-----------------------------------
-- Ranger
-----------------------------------
Expand Down Expand Up @@ -226,33 +190,6 @@ m:addOverride('xi.effects.yonin.onEffectGain', function(target, effect)
effect:addMod(xi.mod.ENMITY, effect:getPower())
end)

-- San Spells: Add +5 Magic Attack and +5 Magic Accuracy per merit rank
-- Source: https://forum.square-enix.com/ffxi/threads/55525-June.-10-2019-%28JST%29-Version-Update
local sanSpellOverrides =
{
{ path = 'xi.actions.spells.ninjutsu.katon_san.onSpellCast', merit = xi.merit.KATON_SAN },
{ path = 'xi.actions.spells.ninjutsu.hyoton_san.onSpellCast', merit = xi.merit.HYOTON_SAN },
{ path = 'xi.actions.spells.ninjutsu.huton_san.onSpellCast', merit = xi.merit.HUTON_SAN },
{ path = 'xi.actions.spells.ninjutsu.doton_san.onSpellCast', merit = xi.merit.DOTON_SAN },
{ path = 'xi.actions.spells.ninjutsu.raiton_san.onSpellCast', merit = xi.merit.RAITON_SAN },
{ path = 'xi.actions.spells.ninjutsu.suiton_san.onSpellCast', merit = xi.merit.SUITON_SAN },
}

for _, entry in ipairs(sanSpellOverrides) do
m:addOverride(entry.path, function(caster, target, spell)
local meritBonus = caster:getMerit(entry.merit)
caster:addMod(xi.mod.MATT, meritBonus)
caster:addMod(xi.mod.MACC, meritBonus)

local damage = super(caster, target, spell)

caster:delMod(xi.mod.MATT, meritBonus)
caster:delMod(xi.mod.MACC, meritBonus)

return damage
end)
end

-----------------------------------
-- Dragoon
-----------------------------------
Expand Down Expand Up @@ -308,6 +245,16 @@ m:addOverride('xi.job_utils.dragoon.useHealingBreath', function(wyvern, target,
return totalHPRestored
end)

-- Elemental Breath: Revert to consume TP on breath usage
-- Source: https://forum.square-enix.com/ffxi/threads/48564-Sep-16-2015-%28JST%29-Version-Update
m:addOverride('xi.job_utils.dragoon.useDamageBreath', function(wyvern, target, skill, action, damageType)
local result = super(wyvern, target, skill, action, damageType)

wyvern:setTP(0)

return result
end)

-- Spirit Link: Revert to pre-September 2015 healing formula.
-- Source: https://forum.square-enix.com/ffxi/threads/48564-Sep-16-2015-%28JST%29-Version-Update
-- Formula taken from: https://wiki.ffo.jp/html/15079.html
Expand Down
Loading
Loading