From 9489ea3d637569e6adeb7d3d840a80692ca03b70 Mon Sep 17 00:00:00 2001 From: lashoun <33624164+lashoun@users.noreply.github.com> Date: Thu, 12 Aug 2021 06:32:09 +0200 Subject: [PATCH] [XCX mod] added Ground Damage Divisor (#512) * [XCX mod] create Ground Damage Divisor patch_dmg cemu_graphic_packs/src/XenobladeChroniclesX/Mods/ BattleDamageModGround2/patch_dmg * [XCX mod] create Ground Damage Divisor rules cemu_graphic_packs/src/XenobladeChroniclesX/Mods/ BattleDamageModGround2/rules * Rename patch_dmg to patch_dmg.asm * Rename rules to rules.txt * Xenoblade X - Ground Damage Divisor - remove superfluous quote Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> * Xenoblade X - Ground Damage Divisor - shortened mod description Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> * Xenoblade X - Ground Damage Divisor - added categories and default x1 preset Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> * XenobladeX - Ground Damage Divisor - removed ####'s Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> --- .../Mods/BattleDamageModGround2/patch_dmg.asm | 22 +++++++++ .../Mods/BattleDamageModGround2/rules.txt | 45 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 src/XenobladeChroniclesX/Mods/BattleDamageModGround2/patch_dmg.asm create mode 100644 src/XenobladeChroniclesX/Mods/BattleDamageModGround2/rules.txt 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