Ejemplo n.º 1
0
        private static Image GetBaseImage(int species, int form, int gender, bool shiny, int generation)
        {
            var img = FormConverter.IsTotemForm(species, form)
                ? GetBaseImageTotem(species, form, gender, shiny, generation)
                : GetBaseImageDefault(species, form, gender, shiny, generation);

            return(img ?? GetBaseImageFallback(species, form, gender, shiny, generation));
        }
Ejemplo n.º 2
0
        private static Image GetBaseImageTotem(int species, int form, int gender, bool shiny, int generation)
        {
            var baseform  = FormConverter.GetTotemBaseForm(species, form);
            var file      = GetResourceStringSprite(species, baseform, gender, generation, shiny);
            var baseImage = (Image)Resources.ResourceManager.GetObject(file);

            return(ImageUtil.ToGrayscale(baseImage));
        }
Ejemplo n.º 3
0
        private Image?GetBaseImageTotem(int species, int form, int gender, bool shiny, bool gmax, int generation)
        {
            var baseform  = FormConverter.GetTotemBaseForm(species, form);
            var baseImage = GetBaseImageDefault(species, baseform, gender, shiny, gmax, generation);

            if (baseImage == null)
            {
                return(null);
            }
            return(ImageUtil.ToGrayscale(baseImage));
        }