Skip to content

Commit

Permalink
Add custom images to item roulette
Browse files Browse the repository at this point in the history
  • Loading branch information
Krummers committed Mar 8, 2024
1 parent 1471c9f commit 9b1079e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
Binary file removed Patcher/Files/gesso/feather.brres
Binary file not shown.
Binary file added Patcher/Files/gesso/krummy.tpl
Binary file not shown.
Binary file added Patcher/Files/kumo/flipped-thunder.tpl
Binary file not shown.
Binary file added Patcher/Files/kumo/mega.tpl
Binary file not shown.
Binary file added Patcher/Files/kumo/pac-man.tpl
Binary file not shown.
Binary file added Patcher/Files/kumo/sad-cat.tpl
Binary file not shown.
19 changes: 19 additions & 0 deletions Patcher/Intermezzo.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,38 @@

if gesso != "feather" or kumo != "normal" or perf_monitor:
patch2.extract()
race = fl.File(os.path.join(patch2.extract_folder, "files", "Scene", "UI", "Race.szs"))

if gesso != "feather":
print(f"Copying {gesso}...")
brres = fl.File(os.path.join(patch2.extract_folder, "common", "gesso.brres"))
other = fl.File(os.path.join(files.path, "gesso", f"{gesso}.brres"))
brres.delete()
other.copy(brres.path)

os.system(f"wszst extract \"{race.path}\"")
tpl = fl.File(os.path.join(patch2.extract_folder, "files", "Scene", \
"UI", "Race.d", "game_image", "timg", "fm_item_gesso.tpl"))
other = fl.File(os.path.join(files.path, "gesso", f"{gesso}.tpl"))
tpl.delete()
other.copy(tpl.path)
os.system(f"wszst create \"{race.path[:-3] + 'd'}\" -o")
sh.rmtree(race.path[:-3] + "d")

if kumo != "normal":
print(f"Copying {kumo}...")
brres = fl.File(os.path.join(patch2.extract_folder, "common", "kumo.brres"))
other = fl.File(os.path.join(files.path, "kumo", f"{kumo}.brres"))
other.copy(brres.path)

os.system(f"wszst extract \"{race.path}\"")
tpl = fl.File(os.path.join(patch2.extract_folder, "files", "Scene", \
"UI", "Race.d", "game_image", "timg", "fm_item_pikakumo.tpl"))
other = fl.File(os.path.join(files.path, "kumo", f"{kumo}.tpl"))
tpl.delete()
other.copy(tpl.path)
os.system(f"wszst create \"{race.path[:-3] + 'd'}\" -o")
sh.rmtree(race.path[:-3] + "d")

if perf_monitor:
print("Enabling the performance monitor...")
Expand Down

0 comments on commit 9b1079e

Please sign in to comment.