예제 #1
0
        public ActionResult AddHours(int hours)
        {
            Campaign campaign = CurrentVariables.CurrentCampaign;

            if (campaign == null)
            {
                return(NotFound());
            }
            campaign.AddHours(hours);
            CurrentVariables.TimeSinceWeatherChange += hours;
            if (CurrentVariables.TimeSinceWeatherChange >= 3)
            {
                //change weather type
                RandomWeatherSelect();
            }
            return(RedirectToAction(nameof(Index)));
        }