커밋 중간

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

View File

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

View File

@@ -18,7 +18,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<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>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>