/// <summary>Raised once per second after the game state is updated.</summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void OnOneSecondUpdateTicked(object sender, OneSecondUpdateTickedEventArgs e) { if (Context.IsPlayerFree) { if (Game1.game1.IsActive) { SecondCount++; } if (SecondCount == 10) { SecondCount = 0; if (Game1.currentLocation.IsOutdoors && OurMoon.CurrentPhase() == MoonPhase.BloodMoon) { Vector2 vecSpawn = SDVUtilities.SpawnRandomMonster(Game1.currentLocation); if (vecSpawn != Vector2.Zero && ModConfig.Verbose) { Monitor.Log($"Monster spawned at {vecSpawn}"); } } } } }