本帖最后由 c4sunyx 于 2026-4-3 20:24 编辑
要去掉这个 Hack,删除以下内容只需改动两个文件: 1. TradeUIControllerPatch.cs — 删除 ShowTradeUI_Prefix 整个方法(第 122-149 行)
同时删除 SureButtonClicked_Postfix(第 81-90 行),否则它还在写回同步数据(虽无害但多余): public static void SureButtonClicked_Postfix(TradeUIController __instance){ ShopMoneyHelper.OnAreaChanged(__instance.rightList.targetItemList.money);}
2. UIPatches.cs — 删除 GameController_ChangeMonth_Postfix(第 44-49 行)// 删除这个方法:[HarmonyPostfix][HarmonyPatch(typeof(GameController), "ChangeMonth")]
public static void GameController_ChangeMonth_Postfix(){ ShopMoneyHelper.OnMonthChanged();}
3. 可选:删除整个 ShopMoneyHelper.cs上面两步做完后,ShopMoneyHelper 不再被任何地方调用,可以直接删掉这个文件。
多谢,我自己之前用AI反汇编去掉了修钱,那既然您授权了我就放心改了~
|