Example #1
0
 private static bool ShouldStopFindingProduce(ref Decorators.FarmAnimal moddedAnimal)
 {
     return(Random.Seed((int)(moddedAnimal.GetUniqueId() / 2L +
                              Game.GetDaysPlayed() +
                              Game.GetTimeOfDay())).NextDouble() >
            moddedAnimal.GetFriendship() / 1500.0);
 }