From 9eb60ed641cc1d6122df87bf50512a683245f706 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 14 Aug 2022 15:00:40 +1000 Subject: [PATCH] Add shuttle walls to icon smoothing (#10573) --- Tools/iconsmooth.py | 4 ++-- Tools/iconsmooth_lib.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Tools/iconsmooth.py b/Tools/iconsmooth.py index ddc5578dc6..4cd53ca8b8 100644 --- a/Tools/iconsmooth.py +++ b/Tools/iconsmooth.py @@ -49,8 +49,8 @@ src_img = PIL.Image.open(input_name) input_row = src_img.size[0] // tile_w tiles = [] -# 48 is the amount of tiles that usually exist -for i in range(48): +# 48 is the amount of tiles that usually exist, but 56 covers walls with diagonal variants. +for i in range(56): tile = PIL.Image.new("RGBA", (tile_w, tile_h)) tx = i % input_row ty = i // input_row diff --git a/Tools/iconsmooth_lib.py b/Tools/iconsmooth_lib.py index 012385b6c2..370238b1b1 100644 --- a/Tools/iconsmooth_lib.py +++ b/Tools/iconsmooth_lib.py @@ -49,6 +49,21 @@ conversion_modes = { [ 46, 46, 46, 46], # 7 : Full ] ), + # TG + "tg_shuttle": ConversionMode( + 7, 9, + [ + # BR, TL, TR, BL + [ 0, 0, 0, 0], + [ 16, 16, 3, 3], + [ 0, 0, 0, 0], + [ 16, 16, 3, 3], + [ 3, 3, 16, 16], + [ 19, 19, 19, 19], + [ 3, 3, 16, 16], + [ 54, 54, 54, 54], + ] + ), # Citadel Station "citadel": ConversionMode( 7, 3,