Skip to content

Commit

Permalink
[XCX mod] added Ground Damage Divisor (#512)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

* Xenoblade X - Ground Damage Divisor - shortened mod description

Co-authored-by: Crementif <[email protected]>

* Xenoblade X - Ground Damage Divisor - added categories and default x1 preset

Co-authored-by: Crementif <[email protected]>

* XenobladeX - Ground Damage Divisor - removed ####'s

Co-authored-by: Crementif <[email protected]>
  • Loading branch information
lashoun and Crementif authored Aug 12, 2021
1 parent 85268ae commit 9489ea3
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/XenobladeChroniclesX/Mods/BattleDamageModGround2/patch_dmg.asm
Original file line number Diff line number Diff line change
@@ -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
45 changes: 45 additions & 0 deletions src/XenobladeChroniclesX/Mods/BattleDamageModGround2/rules.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9489ea3

Please sign in to comment.