Exemplo n.º 1
0
        private string GetRaceStringForTimeStamp(int year, int month, int day)
        {
            if (!CreatureTypes.Any())
            {
                return(RaceString);
            }

            List <CreatureType> relevantCreatureTypes = GetRelevantCreatureTypesByTimeStamp(year, month, day);
            string raceString = "";

            if (!string.IsNullOrWhiteSpace(PreviousRace))
            {
                raceString += PreviousRace.ToLower();
            }
            else if (!string.IsNullOrWhiteSpace(AnimatedType))
            {
                raceString += AnimatedType.ToLower();
            }
            else
            {
                raceString += Race.NameSingular.ToLower();
            }

            foreach (var creatureType in relevantCreatureTypes)
            {
                raceString += " " + creatureType.Type;
            }

            return(raceString);
        }
Exemplo n.º 2
0
        public string GetRaceString()
        {
            if (Race == null)
            {
                Race = CreatureInfo.Unknown;
            }
            if (Deity)
            {
                return(Race.NameSingular.ToLower() + " deity");
            }

            if (Force)
            {
                return("force");
            }

            string raceString = "";

            if (!string.IsNullOrWhiteSpace(PreviousRace))
            {
                raceString += PreviousRace.ToLower() + " turned ";
            }
            else if (!string.IsNullOrWhiteSpace(AnimatedType) && !Name.Contains("Corpse"))
            {
                raceString += AnimatedType.ToLower();
            }
            else
            {
                raceString += Race.NameSingular.ToLower();
            }

            foreach (var creatureType in CreatureTypes)
            {
                raceString += " " + creatureType.Type;
            }

            return(raceString);
        }