private static void Postfix(StoreGui __instance, Trader trader) { if (OdinPlus.traderNameList.Contains(trader.m_name)) { OdinTrader.TweakGui(__instance, true); return; } return; }
private static void Prefix(StoreGui __instance) { var trader = Traverse.Create(__instance).Field <Trader>("m_trader").Value; if (OdinPlus.traderNameList.Contains(trader.m_name)) { OdinTrader.TweakGui(__instance, false); return; } return; }