forked from 2dos/DK64-Randomizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
266 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""Convert 63x63 Portal image into 4 32x32 segments.""" | ||
import os | ||
|
||
from PIL import Image | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
import os | ||
import shutil | ||
import struct | ||
|
||
from getMoveSignLocations import getMoveSignData | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
"""Pull hash images from ROM.""" | ||
import zlib | ||
import os | ||
import zlib | ||
|
||
from PIL import Image | ||
|
||
images = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
"""Apply cosmetic skins to kongs.""" | ||
from randomizer.Patcher import ROM | ||
from randomizer.Spoiler import Spoiler | ||
|
||
|
||
def apply_cosmetic_colors(spoiler: Spoiler): | ||
"""Apply cosmetic skins to kongs.""" | ||
enable = False | ||
sav = 0x1FED020 | ||
if spoiler.settings.dk_colors != "vanilla": | ||
enable = True | ||
color = 0 | ||
if spoiler.settings.dk_colors == "blue": | ||
color = 1 | ||
elif spoiler.settings.dk_colors == "green": | ||
color = 2 | ||
elif spoiler.settings.dk_colors == "purple": | ||
color = 3 | ||
ROM().seek(sav + 0x127) | ||
ROM().write(color) | ||
if spoiler.settings.diddy_colors != "vanilla": | ||
enable = True | ||
color = 0 | ||
if spoiler.settings.diddy_colors == "dark_blue": | ||
color = 1 | ||
elif spoiler.settings.diddy_colors == "yellow": | ||
color = 2 | ||
elif spoiler.settings.diddy_colors == "light_blue": | ||
color = 3 | ||
ROM().seek(sav + 0x128) | ||
ROM().write(color) | ||
if spoiler.settings.lanky_colors != "vanilla": | ||
enable = True | ||
color = 0 | ||
if spoiler.settings.lanky_colors == "green": | ||
color = 1 | ||
elif spoiler.settings.lanky_colors == "purple": | ||
color = 2 | ||
elif spoiler.settings.lanky_colors == "red": | ||
color = 3 | ||
ROM().seek(sav + 0x129) | ||
ROM().write(color) | ||
if spoiler.settings.tiny_colors != "vanilla": | ||
enable = True | ||
color = 0 | ||
if spoiler.settings.tiny_colors == "green": | ||
color = 1 | ||
elif spoiler.settings.tiny_colors == "purple": | ||
color = 2 | ||
elif spoiler.settings.tiny_colors == "red": | ||
color = 3 | ||
ROM().seek(sav + 0x12A) | ||
ROM().write(color) | ||
if spoiler.settings.chunky_colors != "vanilla": | ||
enable = True | ||
color = 0 | ||
if spoiler.settings.tiny_colors == "red": | ||
color = 1 | ||
elif spoiler.settings.tiny_colors == "purple": | ||
color = 2 | ||
elif spoiler.settings.tiny_colors == "green": | ||
color = 3 | ||
ROM().seek(sav + 0x12B) | ||
ROM().write(color) | ||
|
||
if enable: | ||
ROM().seek(sav + 0x126) | ||
ROM().write(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
import random | ||
|
||
import js | ||
|
||
from randomizer.Patcher import ROM | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.