Ejemplo n.º 1
0
        public void DoRanchActions()
        {
            if (OwnedRanch != null)
            {
                Tiredness = 1000; // All ranches fully rest you.

                if (OwnedRanch.GetBuildingCount(2) > 0)
                {
                    Thirst = 1000;
                    foreach (HorseInstance horse in HorseInventory.HorseList)
                    {
                        horse.BasicStats.Thirst = 1000;
                    }
                }

                if (OwnedRanch.GetBuildingCount(3) > 0)
                {
                    foreach (HorseInstance horse in HorseInventory.HorseList)
                    {
                        horse.BasicStats.Hunger = 1000;
                    }
                }
                if (OwnedRanch.GetBuildingCount(9) > 0)
                {
                    Hunger = 1000;
                }
                if ((OwnedRanch.GetBuildingCount(1) > 0) || (OwnedRanch.GetBuildingCount(10) > 0) || (OwnedRanch.GetBuildingCount(11) > 0))
                {
                    foreach (HorseInstance horse in HorseInventory.HorseList)
                    {
                        horse.BasicStats.Tiredness = 1000;
                    }
                }
            }
        }