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(); } }
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(); } }