This commit is contained in:
2025-09-29 14:38:07 +08:00
parent 094211f554
commit a611a400cc
3 changed files with 147 additions and 6 deletions

View File

@@ -23,8 +23,8 @@ namespace ArachnaeSwarm
}
// 3. 创建Harmony补丁
// 补丁目标为 Verb_Shoot.TryCastShot。这是所有射击动作的通用入口。
[HarmonyPatch(typeof(Verb_Shoot), "TryCastShot")]
// 补丁目标为 Verb_LaunchProjectile.TryCastShot。这是所有发射弹丸动作的通用入口。
[HarmonyPatch(typeof(Verb_LaunchProjectile), "TryCastShot")]
public static class Patch_Verb_Shoot_TryCastShot
{
// 使用[HarmonyPostfix]特性来创建一个在原方法执行后运行的补丁