diff --git a/src/DonkeyKongCountryTropicalFreeze/DKC_BananaMult/patch_infbanana.asm b/src/DonkeyKongCountryTropicalFreeze/DKC_BananaMult/patch_infbanana.asm new file mode 100644 index 00000000..628b9513 --- /dev/null +++ b/src/DonkeyKongCountryTropicalFreeze/DKC_BananaMult/patch_infbanana.asm @@ -0,0 +1,33 @@ +[DKCTF_MultBanana] +moduleMatches = 0xA37C99E1, 0x4FF15DD2 +.origin = codecave + +_addBananaMultCheat: +cmpwi r29, 15 +bne _addBananaMultCheatExit + +;add extra banana amount +lwz r4, 0x4 (r27) +addi r4, r4, $addamountbna-1 +stw r4, 0x4 (r27) + +_addBananaMultCheatExit: +;restore line we overwrote +or r4, r29, r29 +blr + +[DKCTF_MultBanana_NAv16] +moduleMatches = 0xA37C99E1 +0x020A5974 = bla _addBananaMultCheat + +[DKCTF_MultBanana_NAv2] +moduleMatches = 0x4FF15DD2 +0x020A5908 = bla _addBananaMultCheat + +;[DKCTF_MultBanana_EUv16] + +;[DKCTF_MultBanana_EUv2] + +;[DKCTF_MultBanana_JPv16] + +;[DKCTF_MultBanana_JPv2] diff --git a/src/DonkeyKongCountryTropicalFreeze/DKC_BananaMult/rules.txt b/src/DonkeyKongCountryTropicalFreeze/DKC_BananaMult/rules.txt new file mode 100644 index 00000000..5e310d5d --- /dev/null +++ b/src/DonkeyKongCountryTropicalFreeze/DKC_BananaMult/rules.txt @@ -0,0 +1,29 @@ +[Definition] +titleIds = 0005000010137F00,0005000010138300,0005000010144800 +name = Banana Multiplier +path = "Donkey Kong Country: Tropical Freeze/Cheats/Banana Multiplier" +description = Multiplies the ammount of Banana's you collect. +version = 7 + +[Default] +$addamountbna = 1 + +[Preset] +name = x2 +$addamountbna = 2 + +[Preset] +name = x3 +$addamountbna = 3 + +[Preset] +name = x4 +$addamountbna = 4 + +[Preset] +name = x5 +$addamountbna = 5 + +[Preset] +name = x100 +$addamountbna = 100 diff --git a/src/DonkeyKongCountryTropicalFreeze/DKC_CoinMult/patch_infcoins.asm b/src/DonkeyKongCountryTropicalFreeze/DKC_CoinMult/patch_infcoins.asm new file mode 100644 index 00000000..76930d36 --- /dev/null +++ b/src/DonkeyKongCountryTropicalFreeze/DKC_CoinMult/patch_infcoins.asm @@ -0,0 +1,30 @@ +[DKCTF_MultCoins] +moduleMatches = 0xA37C99E1, 0x4FF15DD2 +.origin = codecave + +_addCoinsMultCheat: +or r5, r30, r30 +cmpwi r29, 1 +bne _addCoinsMultCheatExit + +;add extra coin amount +addi r5, r30, $addamountcn-1 + +_addCoinsMultCheatExit: +blr + +[DKCTF_MultCoins_NAv16] +moduleMatches = 0xA37C99E1 +0x020A5970 = bla _addCoinsMultCheat + +[DKCTF_MultCoins_NAv2] +moduleMatches = 0x4FF15DD2 +0x020A5904 = bla _addCoinsMultCheat + +;[DKCTF_MultCoins_EUv16] + +;[DKCTF_MultCoins_EUv2] + +;[DKCTF_MultCoins_JPv16] + +;[DKCTF_MultCoins_JPv2] diff --git a/src/DonkeyKongCountryTropicalFreeze/DKC_CoinMult/rules.txt b/src/DonkeyKongCountryTropicalFreeze/DKC_CoinMult/rules.txt new file mode 100644 index 00000000..fb340db3 --- /dev/null +++ b/src/DonkeyKongCountryTropicalFreeze/DKC_CoinMult/rules.txt @@ -0,0 +1,33 @@ +[Definition] +titleIds = 0005000010137F00,0005000010138300,0005000010144800 +name = Banana Coin Multiplier +path = "Donkey Kong Country: Tropical Freeze/Cheats/Coin Multiplier" +description = Multiplies the ammount of Banana Coins you collect. +version = 7 + +[Default] +$addamountcn = 1 + +[Preset] +name = x2 +$addamountcn = 2 + +[Preset] +name = x3 +$addamountcn = 3 + +[Preset] +name = x4 +$addamountcn = 4 + +[Preset] +name = x5 +$addamountcn = 5 + +[Preset] +name = x10 +$addamountcn = 10 + +[Preset] +name = x999 +$addamountcn = 999 diff --git a/src/DonkeyKongCountryTropicalFreeze/DKC_LivesMult/patch_inflives.asm b/src/DonkeyKongCountryTropicalFreeze/DKC_LivesMult/patch_inflives.asm new file mode 100644 index 00000000..b83174ea --- /dev/null +++ b/src/DonkeyKongCountryTropicalFreeze/DKC_LivesMult/patch_inflives.asm @@ -0,0 +1,31 @@ +[DKCTF_MultLives] +moduleMatches = 0xA37C99E1, 0x4FF15DD2 +.origin = codecave + +_addLivesMultCheat: +cmpwi r29, 8 +bne _addLivesMultCheatExit + +;add extra lives amount +addi r5, r30, $addamountliv-1 + +_addLivesMultCheatExit: +;restore line we overwrote +or r3, r27, r27 +blr + +[DKCTF_MultLives_NAv16] +moduleMatches = 0xA37C99E1 +0x020A5978 = bla _addLivesMultCheat + +[DKCTF_MultLives_NAv2] +moduleMatches = 0x4FF15DD2 +0x020A590C = bla _addLivesMultCheat + +;[DKCTF_MultLives_EUv16] + +;[DKCTF_MultLives_EUv2] + +;[DKCTF_MultLives_JPv16] + +;[DKCTF_MultLives_JPv2] diff --git a/src/DonkeyKongCountryTropicalFreeze/DKC_LivesMult/rules.txt b/src/DonkeyKongCountryTropicalFreeze/DKC_LivesMult/rules.txt new file mode 100644 index 00000000..4ed5c79b --- /dev/null +++ b/src/DonkeyKongCountryTropicalFreeze/DKC_LivesMult/rules.txt @@ -0,0 +1,29 @@ +[Definition] +titleIds = 0005000010137F00,0005000010138300,0005000010144800 +name = Lives Multiplier +path = "Donkey Kong Country: Tropical Freeze/Cheats/Lives Multiplier" +description = Multiplies the ammount of red 1-UP Ballons you collect. +version = 7 + +[Default] +$addamountliv = 1 + +[Preset] +name = x2 +$addamountliv = 2 + +[Preset] +name = x3 +$addamountliv = 3 + +[Preset] +name = x4 +$addamountliv = 4 + +[Preset] +name = x5 +$addamountliv = 5 + +[Preset] +name = x99 +$addamountliv = 99