require("config.util") local mods = {} function mods.recovery_ja(pat) pat:update_frame(306, 0, 5, { duration = 10 }) end function mods.duration_j6a(pat) pat:update_frame(307, 0, 6, { duration = 5 }) pat:update_frame(307, 0, 7, { duration = 9 }) end function mods.ungrazable_drills(pat) for off = 4, 5 do for idx = 0, 2 do pat:update_frame(800, off, idx, function(frame) set_aflag(frame, AF_UNGRAZABLE) end) end end end function mods.six_signs_mid_hit(pat) pat:update_frame(811, 6, 0, function(frame) set_aflag(frame, AF_HIGHBLOCK_OK) end) end function mods.six_signs_motion_cancel(pat) pat:update_frame(505, 0, 8, { duration = 5 }) pat:update_frame(506, 0, 8, { duration = 10 }) pat:update_frame(506, 0, 11, { duration = 15 }) pat:update_frame(506, 0, 12, { duration = 15 }) end function mods.change_623_sky_attack(pat) for i = 570, 572, 2 do for j = 0, 3 do pat:update_frame(i, 1, j, {damage = 1200, untech = 6000}) -- +200 damage +10 untech end end for i = 571, 573, 2 do for j = 0, 5 do pat:update_frame(i, 1, j, {damage = 1200, untech = 6000}) -- +200 damage +10 untech end end end function mods.heaven_and_earth_press_paramaters(pat) for _, off in ipairs({2, 3, 10, 11}) do for idx = 0, 3 do pat:update_frame(821, off, idx, { sp_damage = 50 }) end end for _, off in ipairs({7, 12}) do pat:update_frame(821, off, 0, { sp_damage = 100 }) end end function mods.guardian_keystone_startup(pat) pat:update_frame(525, 0, 2, { duration = 5 }) end function mods.sword_of_fate_catch_recovery(pat) pat:update_frame(514, 0, 1, { duration = 5 }) pat:update_frame(514, 1, 1, { duration = 15 }) end function mods.sword_of_fate_catch_cancel_properties(pat) for off = 0, 1 do for idx = 1, pat:get_sequence(514, off):get_frame_count() - 1 do pat:update_frame(514, off, idx, function(frame) set_fflag(frame, idx < 2 and FF_ATTACK_CANCEL or FF_ATTACK_CANCEL + FF_MOTION_CANCEL) end) end end end function mods.sword_of_fate_bullet_properties(pat) for idx = 0, 3 do pat:update_frame(812, 0, idx, { damage = 250, untech = 6000, sp_damage = 50, hit_ani_ground = 53, hit_ani_air = 77, hitstop_enemy = 15 }) end end return function(pat) mods.recovery_ja(pat) mods.duration_j6a(pat) -- mods.ungrazable_drills(pat) -- mods.six_signs_mid_hit(pat) -- mods.six_signs_motion_cancel(pat) -- mods.sword_of_fate_catch_recovery(pat) -- mods.sword_of_fate_catch_cancel_properties(pat) -- mods.sword_of_fate_bullet_properties(pat) mods.change_623_sky_attack(pat) mods.heaven_and_earth_press_paramaters(pat) mods.guardian_keystone_startup(pat) end