Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed fishing probabilities to account for duplicate entries, non-cat… #15

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

Sandman534
Copy link

Fixed fishing probabilities to account for duplicate entries, non-catchable fish, furniture and non-standard IDs. Also included garbage handling. Disabled Logging entries to reduce the crazy amount of log spam as well.

This might need to be updated if there are any non-garbage fish records that use the random ID functionality, but I have not seen one so far.

@@ -106,12 +106,12 @@ public static void PrintFishingInfo()

LocationData thisLocData = Game1.currentLocation.GetData();
String jThisLocData = JsonSerializer.Serialize(thisLocData, new JsonSerializerOptions { WriteIndented = true });
Logger.Info($"This LocationData: {jThisLocData}");
//Logger.Info($"This LocationData: {jThisLocData}");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving commented-out code around is not generally advisable.

Perhaps instead consider reducing them from Info to Trace so they are not printed to console unless you're using SMAPI for Developers, or delete them / tie them to a compile-time switch as they will still explode the log file even under Trace (see log level documentation).

Considering the massive quantity of information in these, I'd probably opt for enabling them only in a debug build. It is unkind to performance and the end user's disk to log all that during gameplay.

https://github.com/Hackswell/JoysOfEfficiency/blob/1861eeb9f0520abf3859ddde18789b6b6bbfa3dc/JoysOfEfficiency/Utils/Logger.cs#L23-L31

@Hackswell Hackswell merged commit 850d086 into Hackswell:develop16 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants