AnyDirectionParry

版本 v1.1.1·更新於 2026-08-08

Parry attacks from any direction, regardless of which way Yi is facing.

模組介紹 作者原文

AnyDirectionParry

Removes the facing requirement from parrying. Whichever way Yi is facing, pressing parry

in time will deflect the attack.

How it works

Both parry decision points in the game — DamageReceiver.IsHitDamageNotParried and

ParriableAttackEffect.ParryCheckForEvent — gate the parry on a single call:

Health.parryDealer.FacingRuleCheck(damageDealer, attackDirection, moveInput)

and treat a false result as "not parried, take the hit". That method only ever returns

false from its FaceToFace branch:

if (rule == IgnoreFacing || dealer.rule == IgnoreFacing) return true;

if (rule == FaceToFace || dealer.rule == FaceToFace)

return Dot(GetDirection(), dir) < 0f || Dot(moveInput, dir) < 0f;

return true;

A Harmony postfix forces that result to true, which lifts the facing requirement and

changes nothing else. Note the second half of the stock condition: vanilla already lets you

parry behind you if you are holding the movement stick toward the attack.

Configuration

Editable in-game with BepInEx ConfigurationManager (F1), or in

BepInEx/config/custom.AnyDirectionParry.cfg.

| Setting | Default | Effect |

| --- | --- | --- |

| IgnoreParryDirection | true | Turn off to restore stock behaviour without removing the mod. |

| PlayerOnly | true | Turn off to also let enemies that parry ignore facing. |

PlayerOnly exists because DamageReceiver resolves parryDealer from whichever Health

it is bound to, so the dealer being checked is not always the player's.

Built with AI

Written with Anthropic's Claude (Claude Code, Opus 5) - the decompilation work, the C#, the tests and these docs. Design decisions and in-game testing are supidowagon's.

There is a behaviour test suite that runs the compiled DLL against a transcription of the game code it patches, and every patch is commented with the decompiled method it targets. Source and tests:

Built against Nine Sols with BepInEx 5.4.23.5 and HarmonyX 2.9.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
AnyDirectionParry-1.1.1.zip
檔案大小
9.8 KiB
SHA-256
4495a14b33bacf4df69bddb11d728614902414b418754d3076e72b584b672117
入庫時間
2026-10-06 19:06