Example #1
0
        public IMythology GenerateSingle()
        {
            DeityGen deityGenerator = new DeityGen();
            IMythology mythos = new Mythology();
            mythos.Id = Random.Next(0, 78000000);
            mythos.Name = Names.SingleName(CoreEnums.Word.ElfPlace);
            mythos.Description = "DESCRIPTION";
            mythos.Deities = new List<IDeity> { deityGenerator.Generate(null, CoreEnums.Deity.Primary) };
            if (mythos.MythosType != CoreEnums.MythologicalType.Monotheistic)
            {
                // add multiple major deities
                int numberOfMajorDeities = Random.Next(2, 7);
                for (int n = 0; n < numberOfMajorDeities - 1; n++)
                {
                    mythos.Deities.Add(deityGenerator.Generate(mythos.Deities.First(), CoreEnums.Deity.Major));
                }

                // add multiple minor deities for each major deity
                for (int n = 0; n < mythos.Deities.Where(d => d.Prominence == CoreEnums.Deity.Major).ToList().Count - 1; n++)
                {
                    int numberOfMinorDeities = Random.Next(1, 4);
                    for (int x = 0; x < numberOfMinorDeities; x++)
                    {
                        mythos.Deities.Add(deityGenerator.Generate(mythos.Deities.Where(d => d.Prominence == CoreEnums.Deity.Major).ToList()[n], CoreEnums.Deity.Minor));
                    }
                }
            }
            return mythos;
        }
Example #2
0
 public Dwarves()
 {
     NativeTongue = new Language();
     CommonTongue = new Language();
     Mythos = new Core.Mythology.Mythology();
     lifeSpan = 345;
     sexualMaturity = 110;
 }