diff --git a/Mods/BreathOfTheWild_Weather/patches.txt b/Mods/BreathOfTheWild_Weather/patches.txt new file mode 100644 index 00000000..f38d7ae7 --- /dev/null +++ b/Mods/BreathOfTheWild_Weather/patches.txt @@ -0,0 +1,23 @@ +[BotwV208] +moduleMatches = 0x6267BFD0 + +codeCaveSize = 0x14 + +# Constants +0x00000000 = .byte $weatherByte +_weatherConst = 0x00000000 + +# Code that changes the weather to our constant +_changeWeather = 0x00000004 +0x00000004 = lis r26, _weatherConst@ha +0x00000008 = lbz r26, _weatherConst@l(r26) +0x0000000C = stb r26, 0x18(r30) +0x00000010 = blr + +0x3668FEC = bla _changeWeather + +# Original Instructions +# .text:03668FE4 stfs f28, 0x14(r30) +# .text:03668FE8 stb r0, 0x19(r30) +# .text:03668FEC stb r26, 0x18(r30) # Here we jump to our code cave since it originally sets the weather byte in the game. +# .text:03668FF0 b loc_3669434 \ No newline at end of file diff --git a/Mods/BreathOfTheWild_Weather/rules.txt b/Mods/BreathOfTheWild_Weather/rules.txt new file mode 100644 index 00000000..790e5018 --- /dev/null +++ b/Mods/BreathOfTheWild_Weather/rules.txt @@ -0,0 +1,43 @@ +[Definition] +titleIds = 00050000101C9300,00050000101C9400,00050000101C9500 +name = Weather +path = "The Legend of Zelda: Breath of the Wild/Mods/Weather" +description = Changes the weather +version = 3 + +[Preset] +name = Clear weather +$weatherByte:int = 0 + +[Preset] +name = Raining +$weatherByte:int = 2 + +[Preset] +name = Raining (dark clouds and winds blowing) +$weatherByte:int = 3 + +[Preset] +name = Clear weather (distant thunder) +$weatherByte:int = 6 + +[Preset] +name = Raining (thundering clouds) +$weatherByte:int = 7 + +[Preset] +name = Raining (fog) +$weatherByte:int = 8 + +# If anyone finds accurate names for these, feel free to fill them in. +[Preset] +name = MISC 1 +$weatherByte:int = 1 + +[Preset] +name = MISC 2 +$weatherByte:int = 4 + +[Preset] +name = MISC 3 +$weatherByte:int = 5 \ No newline at end of file