커밋 중간

This commit is contained in:
2025-05-30 13:47:01 +09:00
parent 6ee74a928c
commit 377f440c46
2 changed files with 5 additions and 3 deletions

View File

@@ -28,8 +28,10 @@ namespace psycastDontNeedPsyfocus
Log.Message("Cant find vpe"); Log.Message("Cant find vpe");
} }
var Vmethod = typeof(AbilityDef).GetProperty(nameof(AbilityDef.PsyfocusCost)).GetGetMethod(); MethodBase Vmethod = typeof(AbilityDef).GetProperty(nameof(AbilityDef.PsyfocusCost)).GetGetMethod();
harmony.Patch(Vmethod, postfix: new HarmonyMethod(typeof(HarmonyPatch), nameof(Postfix_V))); Log.Message(Vmethod.ToString());
//메서드는 발견한듯?
harmony.Patch(Vmethod, postfix: new HarmonyMethod(typeof(HarmonyPatches), nameof(Postfix_V)));
if (Vmethod != null) if (Vmethod != null)
{ {
Log.Message("find v method"); Log.Message("find v method");

View File

@@ -18,7 +18,7 @@
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>..\..\..\1.5\Assemblies\</OutputPath> <OutputPath>..\..\..\Program Files %28x86%29\Steam\steamapps\common\RimWorld\Mods\PsycastDontNeedPsyfocus\1.5\Assemblies\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>