/// <summary>
        /// Applies any Harmony patches used by this mod.
        /// </summary>
        private void ApplyHarmonyPatches()
        {
            var harmony = new Harmony(this.ModManifest.UniqueID); //create this mod's Harmony instance

            //apply all patches
            HarmonyPatch_UpdateCursorOverPlacedItem.ApplyPatch(harmony);
            HarmonyPatch_OptimizeMonsterCode.ApplyPatch(harmony);
            HarmonyPatch_ToggleExtraLoot.ApplyPatch(harmony);
        }
예제 #2
0
        /// <summary>Applies any Harmony patches used by this mod.</summary>
        private void ApplyHarmonyPatches()
        {
            HarmonyInstance harmony = HarmonyInstance.Create(ModManifest.UniqueID); //create this mod's Harmony instance

            //apply all patches
            HarmonyPatch_AddSpawnedMineralsToCollections.ApplyPatch(harmony);
            HarmonyPatch_UpdateCursorOverPlacedItem.ApplyPatch(harmony);
            HarmonyPatch_OptimizeMonsterCode.ApplyPatch(harmony);
        }