Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Remove logging statements for release
Browse files Browse the repository at this point in the history
  • Loading branch information
paperman5 committed Dec 26, 2023
1 parent c6054fd commit 1185cd9
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions GlobalGoopTrackerMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public static class GlobalGoopTrackerMod

public static void AddBiomeToDictionary(BiomeManager bm)
{
log.LogInfo(bm.biomeDisplayName);
log.LogInfo(bm.currentGoopPollution);
log.LogInfo(bm.currentPlasticCloudPollution);
log.LogInfo(bm.currentLitterPollution);
//log.LogInfo(bm.biomeDisplayName);
//log.LogInfo(bm.currentGoopPollution);
//log.LogInfo(bm.currentPlasticCloudPollution);
//log.LogInfo(bm.currentLitterPollution);
int biomeIndex = bm.biomeIndex;
if (!biomePollution.ContainsKey(biomeIndex))
{
Expand All @@ -40,7 +40,7 @@ public static void UpdateBiomePollution(GameEvent e)
{
BiomeManager bm = ((BiomePollutionUpdated)e).biome;
int biomeIndex = bm.biomeIndex;
log.LogInfo($"Updating biome {biomeIndex}");
//log.LogInfo($"Updating biome {biomeIndex}");
if (biomePollution.ContainsKey(biomeIndex))
{
biomePollution[biomeIndex]["goopPollution"] = bm.currentGoopPollution;
Expand Down Expand Up @@ -100,23 +100,23 @@ public static float GetGlobalPollutionAmount()
return BloopTools.SnapToZero(totalPollution, 1E-06f);
}

[HarmonyPatch(typeof(GameManager), nameof(GameManager.Update))]
[HarmonyPostfix]
public static void Update_Postfix()
{
if (Input.GetKeyDown(KeyCode.F3))
{
foreach (int bi in biomePollution.Keys)
{
BiomeManager bm;
bm = bi != -1 ? EngineHub.BiomeSaver.LookUpBiomeByID(bi) : nonBiomeManager;
log.LogInfo(bm.biomeDisplayName);
log.LogInfo($"goop: {biomePollution[bi]["goopPollution"]}");
log.LogInfo($"plastic: {biomePollution[bi]["plasticCloudPollution"]}");
log.LogInfo($"litter: {biomePollution[bi]["litterPollution"]}");
}
}
}
//[HarmonyPatch(typeof(GameManager), nameof(GameManager.Update))]
//[HarmonyPostfix]
//public static void Update_Postfix()
//{
// if (Input.GetKeyDown(KeyCode.F3))
// {
// foreach (int bi in biomePollution.Keys)
// {
// BiomeManager bm;
// bm = bi != -1 ? EngineHub.BiomeSaver.LookUpBiomeByID(bi) : nonBiomeManager;
// log.LogInfo(bm.biomeDisplayName);
// log.LogInfo($"goop: {biomePollution[bi]["goopPollution"]}");
// log.LogInfo($"plastic: {biomePollution[bi]["plasticCloudPollution"]}");
// log.LogInfo($"litter: {biomePollution[bi]["litterPollution"]}");
// }
// }
//}

[HarmonyPatch(typeof(GameProgressTracker), nameof(GameProgressTracker.HandleBiomePollutionShift))]
[HarmonyPrefix]
Expand Down

0 comments on commit 1185cd9

Please sign in to comment.