Skip to content

Commit

Permalink
fix: structure interaction patch
Browse files Browse the repository at this point in the history
  • Loading branch information
InfernoDragon0 committed Aug 14, 2024
1 parent 288da4b commit 7976c6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions COTL_API/CustomStructures/CustomStructurePatches.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using HarmonyLib;
using HarmonyLib;
using Lamb.UI.BuildMenu;
using UnityEngine;

Expand Down Expand Up @@ -227,9 +227,9 @@ private static bool StructuresData_CanBeFlipped(StructureBrain.TYPES type, ref b
return false;
}

[HarmonyPatch(typeof(Structure), nameof(Structure.Start))]
[HarmonyPatch(typeof(Structure), nameof(Structure.BrainAssigned))]
[HarmonyPostfix]
private static void Structure_Start(Structure __instance)
private static void Structure_BrainAssigned(Structure __instance)
{
if (!CustomStructureList.TryGetValue(__instance.Type, out var value)) return;
if (value.Interaction == null) return;
Expand Down
3 changes: 0 additions & 3 deletions COTL_API/Debug/DebugCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ private static bool UITarotChoiceOverlayController_Show(UITarotChoiceOverlayCont
{
if (Plugin.Instance == null || !Plugin.Instance.Debug) return true;

/*DataManager.Instance.PlayerRunTrinkets.Remove(card1);
DataManager.Instance.PlayerRunTrinkets.Remove(card2);*/

__instance._card1 = GetRandModdedCard();
__instance._card2 = GetRandVanillaCard();
__instance._uiCard1.Play(__instance._card1);
Expand Down
3 changes: 0 additions & 3 deletions COTL_API/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ private void RunSavePatch()

SettingsManager.Settings.Game.Language = "English";
LocalizationManager.CurrentLanguage = "English";

/*if (TwitchAuthentication.IsAuthenticated)
TwitchRequest.InitialiseEBS();*/
TwitchManager.SetLanguage(LocalizationManager.CurrentLanguageCode);

LocalizationManager.LocalizeAll(true);
Expand Down

0 comments on commit 7976c6e

Please sign in to comment.