2019-10-04 01:23:40 +00:00
|
|
|
|
using PKHeX.Core;
|
|
|
|
|
using static PKHeX.Core.GameVersion;
|
|
|
|
|
|
2021-12-10 08:15:04 +00:00
|
|
|
|
namespace PKHeX.Drawing.PokeSprite;
|
|
|
|
|
|
|
|
|
|
internal static class BoxWallpaper
|
2016-07-25 04:11:11 +00:00
|
|
|
|
{
|
2021-12-10 08:15:04 +00:00
|
|
|
|
public static bool IsWallpaperRed(GameVersion version, int wallpaperID) => version.GetGeneration() switch
|
2016-07-25 04:11:11 +00:00
|
|
|
|
{
|
2021-12-10 08:15:04 +00:00
|
|
|
|
3 when CXD.Contains(version) => wallpaperID == 7, // flame pattern in XD
|
|
|
|
|
3 => wallpaperID switch
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
2021-12-10 08:15:04 +00:00
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
13 => E == version, // PokéCenter
|
|
|
|
|
_ => false,
|
|
|
|
|
},
|
|
|
|
|
4 => wallpaperID switch
|
|
|
|
|
{
|
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
12 => true, // Checks
|
|
|
|
|
13 => true, // PokéCenter
|
|
|
|
|
22 => true, // Special
|
|
|
|
|
_ => false,
|
|
|
|
|
},
|
|
|
|
|
5 => wallpaperID switch
|
|
|
|
|
{
|
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
12 => true, // Checks
|
|
|
|
|
19 => B2W2.Contains(version), // PWT
|
|
|
|
|
22 => B2W2.Contains(version), // Reshiram
|
|
|
|
|
21 => BW.Contains(version), // Zoroark
|
|
|
|
|
23 => BW.Contains(version), // Musical
|
|
|
|
|
_ => false,
|
|
|
|
|
},
|
|
|
|
|
6 or 7 => wallpaperID switch
|
|
|
|
|
{
|
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
12 => true, // PokéCenter
|
|
|
|
|
20 => true, // Special5 Flare/Magma
|
|
|
|
|
_ => false,
|
|
|
|
|
},
|
|
|
|
|
8 when BDSP.Contains(version) => wallpaperID switch
|
|
|
|
|
{
|
|
|
|
|
6 => true, // Volcano
|
|
|
|
|
15 => true, // Checks
|
|
|
|
|
21 => true, // Trio
|
|
|
|
|
29 => true, // Nostalgic (Platinum)
|
|
|
|
|
30 => true, // Legend (Platinum)
|
|
|
|
|
_ => false,
|
|
|
|
|
},
|
|
|
|
|
8 => true, // Bad contrast with lots of void space, better to just highlight the shiny red.
|
|
|
|
|
_ => false,
|
|
|
|
|
};
|
2016-07-25 04:11:11 +00:00
|
|
|
|
}
|