Ejemplo n.º 1
0
        private string TilesetFromMission(string value)
        {
            string[] tilesetArray = TileLogic.GenerateTilesetList();

            string name = tilesetArray.Where(x => value.Contains(x)).First().ToString();

            if (string.IsNullOrEmpty(name))
            {
                return(value + "??? - Check Me: ");
            }
            else
            {
                return(name);
            }
        }
Ejemplo n.º 2
0
        public string DetermineMissionTypeWithSpecialCases(string value)
        {
            var types = TileLogic.GenerateMissionList();

            string name = types.Where(x => value.Contains(x.InGameName)).First().CommonName;

            //Special case consideration
            if (value == "CorpusShip")
            {
                return("Assassination (The Sergeant)");
            }
            else if (value == "GrineerAsteroid")
            {
                return("Sabotage (Drill)");
            }
            else if (string.IsNullOrEmpty(name))
            {
                return(value + "??? - Check Me: ");
            }
            else
            {
                return(name);
            }
        }