From 98f0e5d605c6083c4411daab61759e18c4feb5f2 Mon Sep 17 00:00:00 2001 From: linkaixiang Date: Mon, 3 Oct 2022 08:18:32 +0800 Subject: [PATCH] 0.0.2 --- LKXMods.sln | 8 +++++++- LKXModsGongFaGridCost/LKXModsGongFaGridCost.csproj | 12 ++++++++++++ LKXModsGongFaGridCost/Main.cs | 3 ++- LKXModsGongFaGridCostBackend/Main.cs | 11 ++++------- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/LKXMods.sln b/LKXMods.sln index 9e21ce8..e027f86 100644 --- a/LKXMods.sln +++ b/LKXMods.sln @@ -5,7 +5,9 @@ VisualStudioVersion = 17.3.32901.215 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LKXModsGongFaGridCost", "LKXModsGongFaGridCost\LKXModsGongFaGridCost.csproj", "{CBB708F7-9C6A-42FB-9C0F-DDE2BACEFA9E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LKXModsWarehouseAndBag", "LKXModsWarehouseAndBag\LKXModsWarehouseAndBag.csproj", "{5D52981A-65F9-48EF-9B7E-26E4A206E146}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LKXModsWarehouseAndBag", "LKXModsWarehouseAndBag\LKXModsWarehouseAndBag.csproj", "{5D52981A-65F9-48EF-9B7E-26E4A206E146}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LKXModsGongFaGridCostBackend", "LKXModsGongFaGridCostBackend\LKXModsGongFaGridCostBackend.csproj", "{D754DC98-DA6D-4312-920B-252A4FFE3558}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -21,6 +23,10 @@ Global {5D52981A-65F9-48EF-9B7E-26E4A206E146}.Debug|Any CPU.Build.0 = Debug|Any CPU {5D52981A-65F9-48EF-9B7E-26E4A206E146}.Release|Any CPU.ActiveCfg = Release|Any CPU {5D52981A-65F9-48EF-9B7E-26E4A206E146}.Release|Any CPU.Build.0 = Release|Any CPU + {D754DC98-DA6D-4312-920B-252A4FFE3558}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D754DC98-DA6D-4312-920B-252A4FFE3558}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D754DC98-DA6D-4312-920B-252A4FFE3558}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D754DC98-DA6D-4312-920B-252A4FFE3558}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/LKXModsGongFaGridCost/LKXModsGongFaGridCost.csproj b/LKXModsGongFaGridCost/LKXModsGongFaGridCost.csproj index f732c6a..32cf5e9 100644 --- a/LKXModsGongFaGridCost/LKXModsGongFaGridCost.csproj +++ b/LKXModsGongFaGridCost/LKXModsGongFaGridCost.csproj @@ -43,10 +43,22 @@ E:\SteamLibrary\steamapps\common\The Scroll Of Taiwu\The Scroll of Taiwu_Data\Managed\Assembly-CSharp.dll False + + E:\SteamLibrary\steamapps\common\The Scroll Of Taiwu\The Scroll of Taiwu_Data\Managed\Newtonsoft.Json.dll + False + E:\SteamLibrary\steamapps\common\The Scroll Of Taiwu\The Scroll of Taiwu_Data\Managed\TaiwuModdingLib.dll False + + E:\SteamLibrary\steamapps\common\The Scroll Of Taiwu\The Scroll of Taiwu_Data\Managed\UnityEngine.dll + False + + + E:\SteamLibrary\steamapps\common\The Scroll Of Taiwu\The Scroll of Taiwu_Data\Managed\UnityEngine.CoreModule.dll + False + \ No newline at end of file diff --git a/LKXModsGongFaGridCost/Main.cs b/LKXModsGongFaGridCost/Main.cs index 384db67..ba79b3b 100644 --- a/LKXModsGongFaGridCost/Main.cs +++ b/LKXModsGongFaGridCost/Main.cs @@ -2,6 +2,7 @@ using HarmonyLib; using System.Collections.Generic; using TaiwuModdingLib.Core.Plugin; +using UnityEngine; namespace LKXModsGongFaGridCost { @@ -45,7 +46,7 @@ public override void Initialize() /// /// [HarmonyPostfix, HarmonyPatch(typeof(CombatSkill), "GetAllKeys")] - public static void PatchSkill(ref List ____dataArray) + public static void CombatSkill_Patch(ref List ____dataArray) { if (Loaded) { diff --git a/LKXModsGongFaGridCostBackend/Main.cs b/LKXModsGongFaGridCostBackend/Main.cs index a4e706a..4392d04 100644 --- a/LKXModsGongFaGridCostBackend/Main.cs +++ b/LKXModsGongFaGridCostBackend/Main.cs @@ -29,15 +29,14 @@ public override void Dispose() public override void Initialize() { harmony = Harmony.CreateAndPatchAll(typeof(Run)); - AdaptableLog.Info("测试1"); CombatSkill.Instance.GetAllKeys(); } /// - /// patch功法修改 + /// 功法格子 /// /// - /// + /// [HarmonyPostfix, HarmonyPatch(typeof(CombatSkill), "GetAllKeys")] public static void CombatSkill_GetAllKeys_Patch(CombatSkill __instance, ref List ____dataArray) { @@ -45,15 +44,13 @@ public static void CombatSkill_GetAllKeys_Patch(CombatSkill __instance, ref List { return; } - AdaptableLog.Info("测试2"); foreach (CombatSkillItem item in ____dataArray) { - AdaptableLog.Info(item.Name + ":" + item.GridCost + "-" + item.GenericGrid); - /*typeof(CombatSkillItem).GetField("GridCost").SetValue(item, (sbyte)1); + typeof(CombatSkillItem).GetField("GridCost").SetValue(item, (sbyte)1); if (item.Type == GameData.Domains.CombatSkill.CombatSkillType.Neigong) { typeof(CombatSkillItem).GetField("GenericGrid").SetValue(item, (sbyte)12); - }*/ + } } Loaded = true;