diff --git a/BeyondAbyss/BeyondAbyss.cs b/BeyondAbyss/BeyondAbyss.cs index 5920e52..c9de680 100644 --- a/BeyondAbyss/BeyondAbyss.cs +++ b/BeyondAbyss/BeyondAbyss.cs @@ -8,17 +8,6 @@ namespace BeyondAbyss public class BeyondAbyss { public static void Init() - { - //Winch.Core.API.DredgeEvent.ModAssetsLoaded += Patch; - WinchCore.Log.Info("Initializing BeyondAbyss..."); - - var harmony = new Harmony("com.dredge.BeyondAbyss"); - harmony.PatchAll(Assembly.GetExecutingAssembly()); - - WinchCore.Log.Info("Done :D"); - } - - public static void Patch(object sender, EventArgs e) { WinchCore.Log.Info("Initializing BeyondAbyss..."); diff --git a/BeyondAbyss/BeyondAbyss.csproj b/BeyondAbyss/BeyondAbyss.csproj index c715c7f..240fdd1 100644 --- a/BeyondAbyss/BeyondAbyss.csproj +++ b/BeyondAbyss/BeyondAbyss.csproj @@ -1,4 +1,4 @@ - + @@ -117,4 +117,4 @@ - \ No newline at end of file + diff --git a/BeyondAbyss/Patches/Dynamic/HarvestMinigameView_Patch.cs b/BeyondAbyss/Patches/Dynamic/HarvestMinigameView_Patch.cs index 58e6094..f56e143 100644 --- a/BeyondAbyss/Patches/Dynamic/HarvestMinigameView_Patch.cs +++ b/BeyondAbyss/Patches/Dynamic/HarvestMinigameView_Patch.cs @@ -55,17 +55,17 @@ public static void RefreshHarvestTarget_Prefix() private static void PatchGameValues() { - GameManager.Instance.GameConfigData.DredgingDifficultyConfigs[HarvestDifficulty.VERY_EASY] = ConfigManager.INSTANCE.DredgingDifficultyConfigs[HarvestDifficulty.VERY_EASY]; - GameManager.Instance.GameConfigData.DredgingDifficultyConfigs[HarvestDifficulty.EASY] = ConfigManager.INSTANCE.DredgingDifficultyConfigs[HarvestDifficulty.EASY]; - GameManager.Instance.GameConfigData.DredgingDifficultyConfigs[HarvestDifficulty.MEDIUM] = ConfigManager.INSTANCE.DredgingDifficultyConfigs[HarvestDifficulty.MEDIUM]; - GameManager.Instance.GameConfigData.DredgingDifficultyConfigs[HarvestDifficulty.HARD] = ConfigManager.INSTANCE.DredgingDifficultyConfigs[HarvestDifficulty.HARD]; - GameManager.Instance.GameConfigData.DredgingDifficultyConfigs[HarvestDifficulty.VERY_HARD] = ConfigManager.INSTANCE.DredgingDifficultyConfigs[HarvestDifficulty.VERY_HARD]; - - GameManager.Instance.GameConfigData.FishingDifficultyConfigs[HarvestDifficulty.VERY_EASY] = ConfigManager.INSTANCE.FishingDifficultyConfigs[HarvestDifficulty.VERY_EASY]; - GameManager.Instance.GameConfigData.FishingDifficultyConfigs[HarvestDifficulty.EASY] = ConfigManager.INSTANCE.FishingDifficultyConfigs[HarvestDifficulty.EASY]; - GameManager.Instance.GameConfigData.FishingDifficultyConfigs[HarvestDifficulty.MEDIUM] = ConfigManager.INSTANCE.FishingDifficultyConfigs[HarvestDifficulty.MEDIUM]; - GameManager.Instance.GameConfigData.FishingDifficultyConfigs[HarvestDifficulty.HARD] = ConfigManager.INSTANCE.FishingDifficultyConfigs[HarvestDifficulty.HARD]; - GameManager.Instance.GameConfigData.FishingDifficultyConfigs[HarvestDifficulty.VERY_HARD] = ConfigManager.INSTANCE.FishingDifficultyConfigs[HarvestDifficulty.VERY_HARD]; + Dictionary customDredgingConfig = ConfigManager.INSTANCE.DredgingDifficultyConfigs; + foreach(KeyValuePair entry in customDredgingConfig) + { + GameManager.Instance.GameConfigData.DredgingDifficultyConfigs[entry.Key] = entry.Value; + } + + Dictionary customFishingConfig = ConfigManager.INSTANCE.FishingDifficultyConfigs; + foreach (KeyValuePair entry in customFishingConfig) + { + GameManager.Instance.GameConfigData.FishingDifficultyConfigs[entry.Key] = entry.Value; + } } private static HarvestDifficultyConfigData GetModDefaultValue(bool isDredge, HarvestDifficulty difficulty, HarvestDifficultyConfigData data) diff --git a/BeyondAbyss/packages.config b/BeyondAbyss/packages.config index db193fc..7093a38 100644 --- a/BeyondAbyss/packages.config +++ b/BeyondAbyss/packages.config @@ -6,4 +6,4 @@ - \ No newline at end of file + diff --git a/README.md b/README.md new file mode 100644 index 0000000..21719f3 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# BeyondAbyss +DREDGE Hardcore Mode