From 5cedf6d96ca71cc8be7265281ed5d9b12b4f76df Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <7285555+Sakorona@users.noreply.github.com> Date: Sat, 22 Jan 2022 17:25:12 -0800 Subject: [PATCH] Updates for various things. --- DynamicNightTime/DynamicNightTime.cs | 4 ++-- TheStarsIncline/AstrologicalSigns.cs | 2 -- TheStarsIncline/TheStarsIncline.cs | 7 ++----- TheStarsIncline/TheStarsIncline.csproj | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/DynamicNightTime/DynamicNightTime.cs b/DynamicNightTime/DynamicNightTime.cs index 5a2e601..38064c5 100644 --- a/DynamicNightTime/DynamicNightTime.cs +++ b/DynamicNightTime/DynamicNightTime.cs @@ -305,9 +305,9 @@ private void OnGameLaunched(object sender, GameLaunchedEventArgs e) public static float CalculateDayNightRatio() { - float day_night_tranisition = (Utility.CalculateMinutesBetweenTimes(Game1.getStartingToGetDarkTime(), (Game1.timeOfDay + (int)(Game1.gameTimeInterval / 7000f * 10f % 10f))) * 1.0f) / (float)(Utility.CalculateMinutesBetweenTimes(Game1.getStartingToGetDarkTime(), Game1.getTrulyDarkTime()) * 1.0f); + float day_night_transition = (Utility.CalculateMinutesBetweenTimes(Game1.getStartingToGetDarkTime(), (Game1.timeOfDay + (int)(Game1.gameTimeInterval / 7000f * 10f % 10f))) * 1.0f) / (float)(Utility.CalculateMinutesBetweenTimes(Game1.getStartingToGetDarkTime(), Game1.getTrulyDarkTime()) * 1.0f); - return day_night_tranisition; + return day_night_transition; } public static float GetCurrentLocationLat() diff --git a/TheStarsIncline/AstrologicalSigns.cs b/TheStarsIncline/AstrologicalSigns.cs index 31b667c..30c6e77 100644 --- a/TheStarsIncline/AstrologicalSigns.cs +++ b/TheStarsIncline/AstrologicalSigns.cs @@ -1,8 +1,6 @@ using System.Collections.Generic; -using Microsoft.Xna.Framework; using StardewModdingAPI.Utilities; using StardewValley; -using TwilightShards.Stardew.Common; namespace TwilightShards.TheStarsIncline { diff --git a/TheStarsIncline/TheStarsIncline.cs b/TheStarsIncline/TheStarsIncline.cs index 7029b05..b4185d6 100644 --- a/TheStarsIncline/TheStarsIncline.cs +++ b/TheStarsIncline/TheStarsIncline.cs @@ -6,20 +6,17 @@ public class TheStarsIncline : Mod { private readonly int UniqueBaseID = 49134570; - private AstrologicalSigns ZodiacData; - //It's the age of aquarius. The age of aquarius~~~ - public override void Entry(IModHelper helper) { //woo! Helper.Events.GameLoop.DayStarted += GameLoop_DayStarted; - var ZodiacData = new AstrologicalSigns(); + } private void GameLoop_DayStarted(object sender, StardewModdingAPI.Events.DayStartedEventArgs e) { - throw new System.NotImplementedException(); + } } } diff --git a/TheStarsIncline/TheStarsIncline.csproj b/TheStarsIncline/TheStarsIncline.csproj index 1c84e86..a1974a8 100644 --- a/TheStarsIncline/TheStarsIncline.csproj +++ b/TheStarsIncline/TheStarsIncline.csproj @@ -16,4 +16,4 @@ - \ No newline at end of file + \ No newline at end of file