From 00c02127ccad672e5a52d566d8eb7cf0be9b30ae Mon Sep 17 00:00:00 2001 From: lasyan3 Date: Fri, 9 Nov 2018 08:48:43 +0100 Subject: [PATCH] [XCX] Add mod to unlock all augments in the shop. --- .../patches.txt | 52 +++++++++++++++++++ .../rules.txt | 17 ++++++ 2 files changed, 69 insertions(+) create mode 100644 Modifications/XenobladeX_mod_EquipmentUnlockAugments/patches.txt create mode 100644 Modifications/XenobladeX_mod_EquipmentUnlockAugments/rules.txt diff --git a/Modifications/XenobladeX_mod_EquipmentUnlockAugments/patches.txt b/Modifications/XenobladeX_mod_EquipmentUnlockAugments/patches.txt new file mode 100644 index 00000000..45e255cd --- /dev/null +++ b/Modifications/XenobladeX_mod_EquipmentUnlockAugments/patches.txt @@ -0,0 +1,52 @@ +[XCX_UNLOCKAUGMENTS_EU] +moduleMatches = 0xF882D5CF ; 1.0.1E + +codeCaveSize = 0x1C + +0x00000000 = .byte $checkIgnore +0x00000001 = .byte $checkIgnoreEnd +_ignore = 0x00000000 +_end = 0x00000001 + +_checkIgnore = 0x00000004 +0x00000004 = lis r4, _ignore@h +0x00000008 = lbz r3, _ignore@l(r4) +0x0000000C = blr + +_checkIgnoreEnd = 0x00000010 +0x00000010 = lis r3, _end@h +0x00000014 = lbz r3, _end@l(r3) +0x00000018 = blr + +; ---------------------------------------------------------------------------- +; WHO : menu::MenuArmsCompanyDeviceList::CheckEnableCreateByDeviceID +; WHAT : Unlimited augments + +0x02A817A0 = li r3, 0 ; all augments are known +0x02A817C8 = bla _checkIgnore ; ignore requirements +0x02A81A3C = bla _checkIgnoreEnd ; ignore requirements (end game) + +;##################################################################################### +[XCX_UNLOCKAUGMENTS_US] +moduleMatches = 0x30B6E091 ; 1.0.2U + +codeCaveSize = 0x1C + +0x00000000 = .byte $checkIgnore +0x00000001 = .byte $checkIgnoreEnd +_ignore = 0x00000000 +_end = 0x00000001 + +_checkIgnore = 0x00000004 +0x00000004 = lis r4, _ignore@h +0x00000008 = lbz r3, _ignore@l(r4) +0x0000000C = blr + +_checkIgnoreEnd = 0x00000010 +0x00000010 = lis r3, _end@h +0x00000014 = lbz r3, _end@l(r3) +0x00000018 = blr + +0x02A81790 = li r3, 0 ; all augments are known +0x02A817B8 = bla _checkIgnore ; ignore requirements +0x02A81A2C = bla _checkIgnoreEnd ; ignore requirements (end game) diff --git a/Modifications/XenobladeX_mod_EquipmentUnlockAugments/rules.txt b/Modifications/XenobladeX_mod_EquipmentUnlockAugments/rules.txt new file mode 100644 index 00000000..b21835ff --- /dev/null +++ b/Modifications/XenobladeX_mod_EquipmentUnlockAugments/rules.txt @@ -0,0 +1,17 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = "Unlock all augments" +path = "Xenoblade Chronicles X/Modifications/Equipment/Unlock all augments" +description = All the augments are already known at the shop, and with the CHEAT preset they cost nothing. +version = 3 + +[Preset] +name = "Normal" +$checkIgnore = 5 +$checkIgnoreEnd = 7 + +[Preset] +name = "CHEAT - Ignore Miranium and resources requirements" +$checkIgnore = 0 +$checkIgnoreEnd = 0 +