Beispiel #1
0
        /// <summary>
        /// Replaces the canon ScienceHouse map with AdvancedScienceHouse. Enables the players to access additional
        /// options from Robin.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InitialScienceLab(object sender, EventArgs e)
        {
            GameLocation scienceHouse = Game1.getLocationFromName("ScienceHouse");;
            int          index        = Game1.locations.IndexOf(scienceHouse);

            Game1.locations[index] = new AdvancedScienceHouse(Path.Combine("Maps", "ScienceHouse"), "ScienceHouse", scienceHouse);
            CustomManager.SetScienceIndex(index);
        }