Example #1
0
        /// <summary>
        /// Randomizes the images - depending on what settings are on
        /// It's still important to build the images to make sure seeds are consistent
        /// </summary>
        public void RandomizeImages()
        {
            WeaponImageBuilder weaponImageBuilder = new WeaponImageBuilder();

            weaponImageBuilder.BuildImage();

            if (Globals.Config.RandomizeWeapons && Globals.Config.UseCustomWeaponImages_Needs_Above_Setting_On)
            {
                while (!File.Exists(weaponImageBuilder.OutputFileFullPath))
                {
                    Thread.Sleep(100);
                }
                AddReplacement("TileSheets/weapons", weaponImageBuilder.SMAPIOutputFilePath);
            }
        }
        /// <summary>
        /// Randomizes the images - depending on what settings are on
        /// It's still important to build the images to make sure seeds are consistent
        /// </summary>
        public void RandomizeImages()
        {
            WeaponImageBuilder weaponImageBuilder = new WeaponImageBuilder();

            weaponImageBuilder.BuildImage();
            HandleImageReplacement(weaponImageBuilder, "TileSheets/weapons");

            CropGrowthImageBuilder cropGrowthImageBuilder = new CropGrowthImageBuilder();

            cropGrowthImageBuilder.BuildImage();
            HandleImageReplacement(cropGrowthImageBuilder, "TileSheets/crops");

            SpringObjectsImageBuilder springObjectsImageBuilder = new SpringObjectsImageBuilder(cropGrowthImageBuilder.CropIdsToImageNames);

            springObjectsImageBuilder.BuildImage();
            HandleImageReplacement(springObjectsImageBuilder, "Maps/springobjects");

            BundleImageBuilder bundleImageBuilder = new BundleImageBuilder();

            bundleImageBuilder.BuildImage();
            HandleImageReplacement(bundleImageBuilder, "LooseSprites/JunimoNote");
        }