diff --git a/src/XenobladeChroniclesX/Mods/BattleDamageModGround2/patch_dmg.asm b/src/XenobladeChroniclesX/Mods/BattleDamageModGround2/patch_dmg.asm new file mode 100644 index 00000000..38315ceb --- /dev/null +++ b/src/XenobladeChroniclesX/Mods/BattleDamageModGround2/patch_dmg.asm @@ -0,0 +1,22 @@ +[XCX_DAMAGES] +moduleMatches = 0xF882D5CF, 0x30B6E091 ; 1.0.1E, 1.0.2U + +.origin = codecave + +.int $divr + +_divide_dmg: +li r4, $divr +divw r4, r31, r4 +blr + +0x025D896C = bla _divide_dmg + +[XCX_DAMAGES_1U] +moduleMatches = 0xAB97DE6B ; 1.0.1U + +.origin = codecave + +.int $mult + +0x025D88FC = mulli r4, r31, $mult diff --git a/src/XenobladeChroniclesX/Mods/BattleDamageModGround2/rules.txt b/src/XenobladeChroniclesX/Mods/BattleDamageModGround2/rules.txt new file mode 100644 index 00000000..c9deeb91 --- /dev/null +++ b/src/XenobladeChroniclesX/Mods/BattleDamageModGround2/rules.txt @@ -0,0 +1,45 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = Ground damage divisor +path = "Xenoblade Chronicles X/Mods/Battle/Ground damage divisor +description = Make the game more challenging by dividing the given damage you and your team do to enemies. Doesn't affect the damage numbers that are shown.|Might be experimental since it's not fully been tested yet.||Made by Lashoun. +version = 5 + +[Default] +$divr = 2 + +[Preset] +category = Damage Divisor +name = Normal Damage (Default) +default = 1 +$divr = 1 + +[Preset] +category = Damage Divisor +name = Damage / 2 +$divr = 2 + +[Preset] +category = Damage Divisor +name = Damage / 3 +$divr = 3 + +[Preset] +category = Damage Divisor +name = Damage / 5 +$divr = 5 + +[Preset] +category = Damage Divisor +name = Damage / 10 +$divr = 10 + +[Preset] +category = Damage Divisor +name = Damage / 10 +$divr = 50 + +[Preset] +category = Damage Divisor +name = Damage / 100 +$divr = 100