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);
        }
        public string GetRaceTitleString()
        {
            string hfraceString = "";

            if (Ghost)
            {
                hfraceString += "ghostly ";
            }

            if (Skeleton)
            {
                hfraceString += "skeletal ";
            }

            if (Zombie)
            {
                hfraceString += "zombie ";
            }

            if (Caste.ToUpper() == "MALE")
            {
                hfraceString += "male ";
            }
            else if (Caste.ToUpper() == "FEMALE")
            {
                hfraceString += "female ";
            }

            if (PreviousRace != "")
            {
                hfraceString += PreviousRace.ToLower() + " turned ";
            }

            hfraceString += Race.ToLower();

            if (ActiveInteractions.Any(it => it.Contains("VAMPIRE")))
            {
                return(hfraceString + " vampire");
            }

            if (ActiveInteractions.Any(it => it.Contains("WEREBEAST")))
            {
                return(hfraceString + " werebeast");
            }

            if (ActiveInteractions.Any(it => it.Contains("SECRET") && !it.Contains("ANIMATE")))
            {
                return(hfraceString + " necromancer");
            }

            if (ActiveInteractions.Any(it => it.Contains("ANIMATE")))
            {
                return(hfraceString + " animated corpse");
            }

            return(hfraceString);
        }
Beispiel #3
0
 public string GetRaceString()
 {
     if (Deity)
     {
         return(Race.ToLower() + " deity");
     }
     if (Race == "Night Creature" && PreviousRace != "")
     {
         return(PreviousRace.ToLower() + " turned night creature");
     }
     if (ActiveInteractions.Contains("VAMPIRE"))
     {
         return(Race.ToLower() + " vampire");
     }
     return(Race.ToLower());
 }
Beispiel #4
0
        public string GetRaceTitleString()
        {
            string hfraceString = "";

            if (Race == "Night Creature" && PreviousRace != "")
            {
                return(PreviousRace.ToLower() + " turned night creature");
            }

            if (Ghost)
            {
                hfraceString += "ghostly ";
            }
            if (Skeleton)
            {
                hfraceString += "skeletal ";
            }
            if (Zombie)
            {
                hfraceString += "zombie ";
            }
            if (Caste.ToUpper() == "MALE")
            {
                hfraceString += "male ";
            }
            else if (Caste.ToUpper() == "FEMALE")
            {
                hfraceString += "female ";
            }

            hfraceString += Race.ToLower();

            if (ActiveInteractions.Any(it => it.Contains("VAMPIRE")))
            {
                return(hfraceString + " vampire");
            }
            if (ActiveInteractions.Any(it => it.Contains("WEREBEAST")))
            {
                return(hfraceString + " werebeast");
            }

            return(hfraceString);
        }
        public string GetRaceString()
        {
            if (Deity)
            {
                return(Race.ToLower() + " deity");
            }

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

            if (Race == "Night Creature" && PreviousRace != "")
            {
                return(PreviousRace.ToLower() + " turned night creature");
            }

            if (ActiveInteractions.Any(it => it.Contains("VAMPIRE")))
            {
                return(Race.ToLower() + " vampire");
            }

            if (ActiveInteractions.Any(it => it.Contains("WEREBEAST")))
            {
                return(Race.ToLower() + " werebeast");
            }

            if (ActiveInteractions.Any(it => it.Contains("SECRET") && !it.Contains("ANIMATE")))
            {
                return(Race.ToLower() + " necromancer");
            }

            if (ActiveInteractions.Any(it => it.Contains("ANIMATE")))
            {
                return(Race.ToLower() + " animated corpse");
            }

            return(Race.ToLower());
        }
        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);
        }