コード例 #1
0
 public override void CreateBaby()
 {
     for (int j = 0; j < this.LitterSize; j++)
     {
         WildHorse foal = new WildHorse();
         foal.Female   = ((Utility.RandomMinMax(1, 4) == 1) ? false: true);
         foal.Mother   = this;
         foal.Spawned  = false;
         foal.TypeName = "a horse";
         if (Utility.RandomBool())
         {
             foal.MotherBreed = m_MotherBreed;
             //this.Say("passes on "+m_MotherBreed);
         }
         else
         {
             foal.MotherBreed = m_FatherBreed;
             //this.Say("passes on "+m_FatherBreed);
         }
         foal.FatherBreed = m_FoalFatherBreed;
         foal.MakeBaby();
         if (this.Brand != "" && this.Brand != null)
         {
             foal.Owner = this.Owner;
         }
         foal.MoveToWorld(this.Location, this.Map);
     }
     base.CreateBaby();
 }