Ejemplo n.º 1
0
        public static void GameLoop_TimeChanged(object sender, TimeChangedEventArgs e)
        {
            if (e.OldTime >= e.NewTime || ModEntry.callingNPC != null || ModEntry.inCall || !Config.EnableIncomingCalls || (!Config.ReceiveCallsUnderground && Game1.player.currentLocation is MineShaft))
            {
                return;
            }

            if (Game1.random.NextDouble() < Config.FriendCallChance)
            {
                Monitor.Log($"Receiving random call", LogLevel.Debug);
                MobilePhoneApp.ReceiveRandomCall();
            }
        }
Ejemplo n.º 2
0
        public static void GameLoop_TimeChanged(object sender, TimeChangedEventArgs e)
        {
            if (e.OldTime >= e.NewTime || ModEntry.callingNPC != null || !Config.EnableIncomingCalls)
            {
                return;
            }

            if (ModEntry.callingNPC == null && !ModEntry.inCall && Game1.random.NextDouble() < Config.FriendCallChance)
            {
                Monitor.Log($"Receiving random call", LogLevel.Debug);
                MobilePhoneApp.ReceiveRandomCall();
            }
        }