Procházet zdrojové kódy

【新增】扩展 SVDS 护木槽与 SVT 枪管照门槽兼容

让 SVDS 照门固定环的护木槽支持 SVT-40 625mm 枪管,并让该枪管与 SVDS 枪本体双向互不兼容;让 SVT-40 625mm 枪管的照门槽支持 5 种 SKS 导气管防尘盖。

同时新增互斥:TKPD 导轨防尘盖与自身互斥、MDR BLK LBL ALX 20 脚架与自身互斥,均用于防止重复安装。
PJ568 před 1 měsícem
rodič
revize
d6831ba423

+ 2 - 2
README.md

@@ -16,7 +16,7 @@
 | CR 50DS 前准星槽与战术设备槽 | PPSh-41 枪管与枪托槽 |
 | --- | --- |
 | ![Chiappa 犀牛 50DS 左轮手枪](assets/50DS.webp) | ![PPSh-41 冲锋枪](assets/PPSh.webp) |
-| 前准星槽装瞄具基座;战术设备槽装 RK 系列前握把。 | 枪管槽装莫辛 220mm / 514mm / 730mm、SKS / OP-SKS、SVT-40 625mm 枪管或 SVDS 照门固定环(并挂三轨);SVDS 照门固定环的护木槽可装莫辛 200mm、M700、ORSIS T-5000M 或 SVDS 枪管,照门槽与 SKS / OP-SKS 照门固定环、SVT-40 625mm 枪管一样可装 TKPD 导轨防尘盖(该防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体互斥,SVDS 照门固定环另与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件互斥,其护木槽的原版 SVDS 护木与 PPSh-41 本体互斥);枪托槽装 M14ALCS (MOD-0) 枪托与 Zveno 缓冲管转接器;上机匣槽装 TAPCO Intrafuse 或 Fab Defence UAS SKS 枪身套件;730mm 莫辛枪管与 SVT-40 标准枪口装置的准星槽可装 MDR BLK LBL ALX 脚架(16 / 20),AA-12 457mm 枪管的导轨槽可装 M60 脚架,Fab Defence UAS SKS 枪身套件的下导轨可装 ALX 20 脚架,MP-18 与 Marlin MXLR 的枪托槽可装 KS-23 金属枪托;此外 RPD 520mm 枪管的枪口装置槽可装 AKM PBS-1 消音器。 |
+| 前准星槽装瞄具基座;战术设备槽装 RK 系列前握把。 | 枪管槽装莫辛 220mm / 514mm / 730mm、SKS / OP-SKS、SVT-40 625mm 枪管或 SVDS 照门固定环(并挂三轨);SVDS 照门固定环的护木槽可装莫辛 200mm、M700、ORSIS T-5000M、SVDS 枪管或 SVT-40 625mm 枪管,照门槽与 SKS / OP-SKS 照门固定环、SVT-40 625mm 枪管一样可装 TKPD 导轨防尘盖(该防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体及自身互斥,SVT-40 625mm 枪管的照门槽另可装 5 种 SKS 导气管防尘盖,ALX 20 脚架与自身互斥;SVDS 照门固定环另与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件互斥,其护木槽的原版 SVDS 护木与 PPSh-41 本体互斥、其护木槽的 SVT-40 625mm 枪管与 SVDS 本体互斥);枪托槽装 M14ALCS (MOD-0) 枪托与 Zveno 缓冲管转接器;上机匣槽装 TAPCO Intrafuse 或 Fab Defence UAS SKS 枪身套件;730mm 莫辛枪管与 SVT-40 标准枪口装置的准星槽可装 MDR BLK LBL ALX 脚架(16 / 20),AA-12 457mm 枪管的导轨槽可装 M60 脚架,Fab Defence UAS SKS 枪身套件的下导轨可装 ALX 20 脚架,MP-18 与 Marlin MXLR 的枪托槽可装 KS-23 金属枪托;此外 RPD 520mm 枪管的枪口装置槽可装 AKM PBS-1 消音器。 |
 
 ## 文档
 
@@ -54,7 +54,7 @@ All injections are idempotent: an id already present is never added twice.
 | CR 50DS front sight and tactical slots | PPSh-41 barrel and stock slots |
 | --- | --- |
 | ![Chiappa Rhino 50DS revolver](assets/50DS.webp) | ![PPSh-41 SMG](assets/PPSh.webp) |
-| The front sight slot takes a scope base; the tactical slot takes an RK-series foregrip. | The barrel slot takes a 220 / 514 / 730 mm Mosin, SKS / OP-SKS, SVT-40 625 mm barrel or the SVDS rear sight block (with the tri-rail mounted on it); the SVDS rear sight block's handguard slot takes a Mosin 200 mm, M700, ORSIS T-5000M or SVDS barrel, and its sight slot, like the SKS / OP-SKS rear sight blocks and the SVT-40 625 mm barrel, takes the TKPD railed dust cover (which is incompatible with the SKS / OP-SKS / SVT-40 / AVT-40 / SVDS weapons, and the SVDS rear sight block is additionally incompatible with the PPSh-41 dust cover and the TAPCO Intrafuse SKS chassis kit, while the vanilla SVDS handguards it accepts are incompatible with the PPSh-41 weapon itself); the stock slot takes the M14ALCS (MOD-0) buttstock and the Zveno buffer tube adapter; the upper receiver slot takes a TAPCO Intrafuse or Fab Defence UAS SKS chassis kit; the 730 mm Mosin barrel's and the SVT-40 standard muzzle's front sight slots take an MDR BLK LBL ALX bipod (16 / 20), the AA-12 457 mm barrel's rail slot takes an M60 bipod, the Fab Defence UAS SKS chassis kit's lower rail takes an ALX 20 bipod, and the MP-18 and Marlin MXLR stock slots take a KS-23 metal stock; additionally, the RPD 520 mm barrel's muzzle device slot takes an AKM PBS-1 suppressor. |
+| The front sight slot takes a scope base; the tactical slot takes an RK-series foregrip. | The barrel slot takes a 220 / 514 / 730 mm Mosin, SKS / OP-SKS, SVT-40 625 mm barrel or the SVDS rear sight block (with the tri-rail mounted on it); the SVDS rear sight block's handguard slot takes a Mosin 200 mm, M700, ORSIS T-5000M, SVDS or SVT-40 625 mm barrel, and its sight slot, like the SKS / OP-SKS rear sight blocks and the SVT-40 625 mm barrel, takes the TKPD railed dust cover (which is incompatible with the SKS / OP-SKS / SVT-40 / AVT-40 / SVDS weapons and with itself; the SVT-40 625 mm barrel's sight slot additionally takes the 5 SKS gas-tube covers, and the ALX 20 bipod is incompatible with itself; the SVDS rear sight block is additionally incompatible with the PPSh-41 dust cover and the TAPCO Intrafuse SKS chassis kit, while the vanilla SVDS handguards it accepts are incompatible with the PPSh-41 weapon itself and the SVT-40 625 mm barrel it accepts is incompatible with the SVDS weapon itself); the stock slot takes the M14ALCS (MOD-0) buttstock and the Zveno buffer tube adapter; the upper receiver slot takes a TAPCO Intrafuse or Fab Defence UAS SKS chassis kit; the 730 mm Mosin barrel's and the SVT-40 standard muzzle's front sight slots take an MDR BLK LBL ALX bipod (16 / 20), the AA-12 457 mm barrel's rail slot takes an M60 bipod, the Fab Defence UAS SKS chassis kit's lower rail takes an ALX 20 bipod, and the MP-18 and Marlin MXLR stock slots take a KS-23 metal stock; additionally, the RPD 520 mm barrel's muzzle device slot takes an AKM PBS-1 suppressor. |
 
 ## Documentation
 

+ 3 - 3
WeaponCrossModding.csproj

@@ -13,9 +13,9 @@
       钉到 4.1.2 是当前最稳的策略;服务端校验 mod 编译引用的 SPTarkov.Server.Core
       AssemblyVersion,使用 4.1.2 编译的 mod 可被 4.1.5 宿主加载。
     -->
-    <Version>0.7.0</Version>
-    <AssemblyVersion>0.7.0.0</AssemblyVersion>
-    <FileVersion>0.7.0.0</FileVersion>
+    <Version>0.8.0</Version>
+    <AssemblyVersion>0.8.0.0</AssemblyVersion>
+    <FileVersion>0.8.0.0</FileVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
   </PropertyGroup>
 

+ 2 - 2
docs/compatibility.md

@@ -13,7 +13,7 @@
   - Marlin MXLR 杠杆步枪由该模组注入,且本插件将其用作**槽位宿主**(区别于仅作白名单新增项的其它 WTT 物品);若其未在本插件运行前注入,对应条目会记 `not found in Items` 警告并跳过。
 - **原版物品**:RPD 520mm 枪管、M700 全部 4 种枪管、ORSIS T-5000M 660mm 枪管、SKS 与 OP-SKS 的 520mm 枪管、TAPCO Intrafuse SKS 枪身套件、Fab Defence UAS SKS 枪身套件及其枪托槽配件(TAPCO Intrafuse 缓冲管、Fab Defence UAS 折叠枪托)、SKS / OP-SKS 照门固定环、SKS / OP-SKS / SVT-40 / AVT-40 枪本体与 SVT-40 625mm 枪管、SVDS 照门固定环、SVDS 枪本体与 SVDS 枪管、PPSh-41 71 发弹鼓,以及 AKM PBS-1 7.62x39 消音器均为原版物品,不依赖 `WTT-ContentBackport`。
 - **PPSh-41 上机匣槽**:`mod_reciever` 槽同时承载 PPSh-41 防尘盖、TAPCO Intrafuse SKS 与 Fab Defence UAS SKS 枪身套件,共用同一槽位,因此彼此天然二选一。
-- **新增互斥**:两个 SKS 枪身套件与除 KS-23 金属枪托之外的全部 PPSh-41 枪托(含原装木制枪托与 Zveno 缓冲管转接器)互不兼容;两个 SKS 枪身套件与 PPSh-41 的 71 发弹鼓互不兼容;KS-23 金属枪托与两个 SKS 枪身套件枪托槽可装的配件互不兼容;TKPD 导轨防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体互不兼容;SVDS 照门固定环护木槽可装的莫辛 200mm、M700 全部 4 种与 ORSIS T-5000M 枪管与 SVDS 枪本体互不兼容;SVDS 枪管与自身互不兼容(防止重复安装);SVDS 照门固定环与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件互不兼容;SVDS 照门固定环护木槽可装的 3 种原版 SVDS 护木与 PPSh-41 枪本体互不兼容。
+- **新增互斥**:两个 SKS 枪身套件与除 KS-23 金属枪托之外的全部 PPSh-41 枪托(含原装木制枪托与 Zveno 缓冲管转接器)互不兼容;两个 SKS 枪身套件与 PPSh-41 的 71 发弹鼓互不兼容;KS-23 金属枪托与两个 SKS 枪身套件枪托槽可装的配件互不兼容;TKPD 导轨防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体互不兼容;SVDS 照门固定环护木槽可装的莫辛 200mm、M700 全部 4 种与 ORSIS T-5000M 枪管与 SVDS 枪本体互不兼容;SVDS 枪管与自身互不兼容(防止重复安装);SVDS 照门固定环与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件互不兼容;SVDS 照门固定环护木槽可装的 3 种原版 SVDS 护木与 PPSh-41 枪本体互不兼容;SVDS 照门固定环护木槽可装的 SVT-40 / AVT-40 625mm 枪管与 SVDS 枪本体互不兼容;TKPD 导轨防尘盖与自身互不兼容(防止重复安装);MDR BLK LBL ALX 20 脚架与自身互不兼容(防止重复安装)。
 - 插件只改写物品数据库,不注册 Harmony patch,也不与客户端插件争抢运行时方法。
 
 ## 已知限制
@@ -50,7 +50,7 @@
   - The Marlin MXLR lever-action rifle is injected by that mod, and this plugin uses it as a **slot owner** (unlike other WTT items that are only whitelist additions); if it is not injected before this plugin runs, the affected entry logs a `not found in Items` warning and is skipped.
 - **Vanilla items**: the RPD 520 mm barrel, all four M700 barrels, the ORSIS T-5000M 660 mm barrel, the SKS and OP-SKS 520 mm barrels, the TAPCO Intrafuse SKS chassis kit, the Fab Defence UAS SKS chassis kit and their stock-slot parts (TAPCO Intrafuse buffer tube, Fab Defence UAS folding stock), the SKS / OP-SKS rear sight blocks, the SKS / OP-SKS / SVT-40 / AVT-40 weapons and the SVT-40 625 mm barrel, the SVDS rear sight block, the SVDS weapon and the SVDS barrel, the PPSh-41 71-round drum magazine, and the AKM PBS-1 7.62x39 suppressor are all vanilla items and do not depend on `WTT-ContentBackport`.
 - **PPSh-41 upper receiver slot**: the `mod_reciever` slot carries the PPSh-41 dust cover, the TAPCO Intrafuse SKS and the Fab Defence UAS SKS chassis kits; since they share the same slot, they are inherently an either/or choice.
-- **New exclusions**: the two SKS chassis kits are incompatible with every PPSh-41 stock except the KS-23 metal stock (including the PPSh wooden stock and the Zveno buffer tube adapter) and with the PPSh-41 71-round drum magazine; the KS-23 metal stock is incompatible with the parts accepted by the two SKS chassis kits' stock slots; the TKPD railed dust cover is incompatible with the SKS, OP-SKS, SVT-40, AVT-40 and SVDS weapons; the Mosin 200 mm, all four M700 and the ORSIS T-5000M barrels accepted by the SVDS rear sight block's handguard slot are incompatible with the SVDS weapon; the SVDS barrel is incompatible with itself (to prevent duplicate mounting); the SVDS rear sight block is incompatible with the PPSh-41 dust cover and with the TAPCO Intrafuse SKS chassis kit; the 3 vanilla SVDS handguards accepted by the SVDS rear sight block's handguard slot are incompatible with the PPSh-41 weapon itself.
+- **New exclusions**: the two SKS chassis kits are incompatible with every PPSh-41 stock except the KS-23 metal stock (including the PPSh wooden stock and the Zveno buffer tube adapter) and with the PPSh-41 71-round drum magazine; the KS-23 metal stock is incompatible with the parts accepted by the two SKS chassis kits' stock slots; the TKPD railed dust cover is incompatible with the SKS, OP-SKS, SVT-40, AVT-40 and SVDS weapons; the Mosin 200 mm, all four M700 and the ORSIS T-5000M barrels accepted by the SVDS rear sight block's handguard slot are incompatible with the SVDS weapon; the SVDS barrel is incompatible with itself (to prevent duplicate mounting); the SVDS rear sight block is incompatible with the PPSh-41 dust cover and with the TAPCO Intrafuse SKS chassis kit; the 3 vanilla SVDS handguards accepted by the SVDS rear sight block's handguard slot are incompatible with the PPSh-41 weapon itself; the SVT-40 / AVT-40 625 mm barrel accepted by that handguard slot is incompatible with the SVDS weapon; the TKPD railed dust cover is incompatible with itself (to prevent duplicate mounting); the MDR BLK LBL ALX 20 bipod is incompatible with itself (to prevent duplicate mounting).
 - The plugin only rewrites the item database. It registers no Harmony patch and never contends with client plugins for runtime methods.
 
 ## Known Limitations

+ 10 - 4
docs/features.md

@@ -8,13 +8,13 @@
 - CR 200DS、CR 50DS 的 `mod_sight_front` 前准星槽:新增 UZI StormWerkz 顶盖导轨与 MP-18 瞄具基座。
 - Aim Sports“三轨”莫辛步枪导轨的 `mod_scope` 槽:新增 M14 SAGE International DCSB 瞄具基座。
 - SKS / OP-SKS 照门固定环的 `mod_sight_rear` 照门槽:新增 TKPD 导轨防尘盖。
-- SVT-40 625mm 枪管的 `mod_sight_rear` 照门槽:新增 TKPD 导轨防尘盖。
+- SVT-40 625mm 枪管的 `mod_sight_rear` 照门槽:新增 TKPD 导轨防尘盖与 5 种 SKS 导气管防尘盖(OP-SKS 标准、SKS 木制标准、TAPCO、Fab Defence UAS、ATI Monte Carlo;即原生 SKS 导气箍可装的那 5 种)。
 - SVDS 照门固定环的 `mod_sight_rear` 照门槽:新增 TKPD 导轨防尘盖。
 
 ## 枪管与枪托
 
 - PPSh-41 冲锋枪的 `mod_barrel` 枪管槽:新增莫辛纳甘 220mm 锯短螺纹 / 514mm 卡宾 / 730mm 标准枪管、SKS / OP-SKS 的 520mm 枪管、SVT-40 / AVT-40 共用的 625mm 枪管与 SVDS 照门固定环。(莫辛 200mm、M700 全部 4 种与 ORSIS T-5000M 枪管已移至 SVDS 照门固定环的护木槽。)
-- SVDS 照门固定环的 `mod_handguard` 护木槽:新增莫辛 200mm 锯短枪管、M700 全部 4 种枪管(26 英寸、20 英寸螺纹、26 英寸不锈钢、20 英寸不锈钢螺纹)、ORSIS T-5000M 660mm 枪管与 SVDS 枪管。
+- SVDS 照门固定环的 `mod_handguard` 护木槽:新增莫辛 200mm 锯短枪管、M700 全部 4 种枪管(26 英寸、20 英寸螺纹、26 英寸不锈钢、20 英寸不锈钢螺纹)、ORSIS T-5000M 660mm 枪管、SVDS 枪管与 SVT-40 / AVT-40 共用的 625mm 枪管。
 - PPSh-41 冲锋枪的 `mod_stock` 枪托槽:新增 Benelli M3 可伸缩枪托、PKM 木制枪托、Zenit PT-2 "Klassika" PK 机枪枪托、PKP 聚合物枪托、Ultima MP-155 塑料手枪式握把、KS-23 金属枪托、M14 SAGE International M14ALCS (MOD-0) 枪托与 Zveno PK 缓冲管转接器(由 `WTT-ContentBackport` 注入)。
 - 730mm 标准莫辛枪管的 `mod_sight_front` 前准星槽:新增 MDR BLK LBL ALX 脚架(16 与 20 型号,由 `WTT-ContentBackport` 注入;与莫辛准星共用同一槽位,二者互斥)。
 - SVT-40 标准枪口装置的 `mod_sight_front` 前准星槽:新增 MDR BLK LBL ALX 脚架(16 与 20 型号,由 `WTT-ContentBackport` 注入;与原准星共用同一槽位,二者互斥)。
@@ -41,6 +41,9 @@
 - TKPD 导轨防尘盖与 SKS、OP-SKS、SVT-40、AVT-40、SVDS 枪本体互不兼容。
 - SVDS 照门固定环护木槽可装的莫辛 200mm、M700 全部 4 种与 ORSIS T-5000M 枪管与 SVDS 枪本体互不兼容。
 - SVDS 枪管与自身互不兼容(防止重复安装)。
+- TKPD 导轨防尘盖与自身互不兼容(防止重复安装)。
+- SVDS 照门固定环护木槽可装的 SVT-40 / AVT-40 625mm 枪管与 SVDS 枪本体互不兼容。
+- MDR BLK LBL ALX 20 脚架与自身互不兼容(防止重复安装)。
 - SVDS 照门固定环与 PPSh-41 防尘盖互不兼容。
 - SVDS 照门固定环与 TAPCO Intrafuse SKS 枪身套件互不兼容。
 - SVDS 照门固定环护木槽可装的 3 种原版 SVDS 护木(CAA XRS DRG、Izhmash 现代化套件、SVDS 标准护木)与 PPSh-41 枪本体互不兼容。
@@ -57,13 +60,13 @@
 - `mod_sight_front` slot of the CR 200DS and CR 50DS: adds the UZI StormWerkz top cover rail and the MP-18 scope base.
 - `mod_scope` slot of the Aim Sports tri-rail Mosin mount: adds the M14 SAGE International DCSB scope mount.
 - `mod_sight_rear` sight slot of the SKS / OP-SKS rear sight blocks: adds the TKPD railed dust cover.
-- `mod_sight_rear` sight slot of the SVT-40 625 mm barrel: adds the TKPD railed dust cover.
+- `mod_sight_rear` sight slot of the SVT-40 625 mm barrel: adds the TKPD railed dust cover and the 5 SKS gas-tube covers (OP-SKS standard, SKS wooden standard, TAPCO, Fab Defence UAS, ATI Monte Carlo; the five accepted by the native SKS gas block).
 - `mod_sight_rear` sight slot of the SVDS rear sight block: adds the TKPD railed dust cover.
 
 ## Barrels and stocks
 
 - `mod_barrel` slot of the PPSh-41: adds the 220 mm threaded sawn-off, 514 mm carbine and 730 mm standard Mosin barrels, the SKS / OP-SKS 520 mm barrels, the 625 mm barrel shared by the SVT-40 / AVT-40 and the SVDS rear sight block. (The Mosin 200 mm barrel, all four M700 barrels and the ORSIS T-5000M barrel have been moved to the SVDS rear sight block's handguard slot.)
-- `mod_handguard` slot of the SVDS rear sight block: adds the Mosin 200 mm sawn-off barrel, all four M700 barrels (26-inch, 20-inch threaded, 26-inch stainless, 20-inch stainless threaded), the ORSIS T-5000M 660 mm barrel and the SVDS barrel.
+- `mod_handguard` slot of the SVDS rear sight block: adds the Mosin 200 mm sawn-off barrel, all four M700 barrels (26-inch, 20-inch threaded, 26-inch stainless, 20-inch stainless threaded), the ORSIS T-5000M 660 mm barrel, the SVDS barrel and the 625 mm barrel shared by the SVT-40 / AVT-40.
 - `mod_stock` slot of the PPSh-41: adds the Benelli M3 telescopic stock, the PKM wooden stock, the Zenit PT-2 "Klassika" PK stock, the PKP polymer stock, the Ultima MP-155 plastic pistol grip, the KS-23 metal stock, the M14 SAGE International M14ALCS (MOD-0) buttstock and the Zveno PK buffer tube adapter (injected by `WTT-ContentBackport`).
 - `mod_sight_front` slot of the 730 mm standard Mosin barrel: adds the MDR BLK LBL ALX bipods (16 and 20 models, injected by `WTT-ContentBackport`; shared with the Mosin front sight, so the two are mutually exclusive).
 - `mod_sight_front` slot of the SVT-40 standard muzzle: adds the MDR BLK LBL ALX bipods (16 and 20 models, injected by `WTT-ContentBackport`; shared with the stock front sight, so the two are mutually exclusive).
@@ -90,6 +93,9 @@
 - The TKPD railed dust cover is incompatible with the SKS, OP-SKS, SVT-40, AVT-40 and SVDS weapons themselves.
 - The Mosin 200 mm, all four M700 and the ORSIS T-5000M barrels accepted by the SVDS rear sight block's handguard slot are incompatible with the SVDS weapon itself.
 - The SVDS barrel is incompatible with itself (to prevent duplicate mounting).
+- The TKPD railed dust cover is incompatible with itself (to prevent duplicate mounting).
+- The SVT-40 / AVT-40 625 mm barrel accepted by the SVDS rear sight block's handguard slot is incompatible with the SVDS weapon itself.
+- The MDR BLK LBL ALX 20 bipod is incompatible with itself (to prevent duplicate mounting).
 - The SVDS rear sight block is incompatible with the PPSh-41 dust cover.
 - The SVDS rear sight block is incompatible with the TAPCO Intrafuse SKS chassis kit.
 - The 3 vanilla SVDS handguards accepted by the SVDS rear sight block's handguard slot (CAA XRS DRG, Izhmash modernized kit, SVDS standard) are incompatible with the PPSh-41 weapon itself.

+ 10 - 4
docs/verification.md

@@ -25,8 +25,8 @@
    - 在 CR 200DS / CR 50DS 前准星槽安装 StormWerkz 顶盖导轨或 MP-18 瞄具基座;
    - 在 PPSh-41 上安装莫辛 220mm / 514mm / 730mm、SKS / OP-SKS 520mm 或 SVT-40 625mm 枪管,安装 SVDS 照门固定环,安装 M14ALCS (MOD-0) 枪托,或安装 Zveno PK 缓冲管转接器;
    - 在 PPSh-41 的机匣槽安装 TAPCO Intrafuse SKS 枪身套件或 Fab Defence UAS SKS 枪身套件;
-   - 在 SVDS 照门固定环的护木槽安装莫辛 200mm、M700、ORSIS T-5000M 或 SVDS 枪管;
-   - 在 SKS / OP-SKS 照门固定环、SVT-40 625mm 枪管或 SVDS 照门固定环的照门槽安装 TKPD 导轨防尘盖;
+   - 在 SVDS 照门固定环的护木槽安装莫辛 200mm、M700、ORSIS T-5000M、SVDS 枪管或 SVT-40 625mm 枪管;
+   - 在 SKS / OP-SKS 照门固定环、SVT-40 625mm 枪管或 SVDS 照门固定环的照门槽安装 TKPD 导轨防尘盖;在 SVT-40 625mm 枪管的照门槽安装 5 种 SKS 导气管防尘盖(OP-SKS 标准、SKS 木制标准、TAPCO、Fab Defence UAS、ATI Monte Carlo);
    - 在 RPD 520mm 枪管的枪口装置槽安装 AKM PBS-1 7.62x39 消音器;
    - 在 730mm 标准莫辛枪管或 SVT-40 标准枪口装置的前准星槽安装 MDR BLK LBL ALX 脚架(16 或 20 型号);
    - 在 AA-12 457mm 枪管的导轨槽安装 M60 脚架;
@@ -39,6 +39,9 @@
    - 尝试同时安装 TKPD 导轨防尘盖与 SKS / OP-SKS / SVT-40 / AVT-40 / SVDS 枪本体,确认二者互斥;
    - 尝试在 SVDS 照门固定环护木槽安装莫辛 200mm / M700 / ORSIS T-5000M 枪管后,再将其与 SVDS 枪本体组合,确认互斥;
    - 尝试在 SVDS 上重复安装两根 SVDS 枪管,确认 SVDS 枪管与自身互斥;
+   - 尝试在 SVDS 上重复安装两个 TKPD 导轨防尘盖,确认 TKPD 与自身互斥;
+   - 尝试把 SVDS 照门固定环护木槽可装的 SVT-40 625mm 枪管与 SVDS 枪本体组合,确认二者互斥;
+   - 尝试重复安装两个 MDR BLK LBL ALX 20 脚架,确认其与自身互斥;
    - 尝试同时安装 SVDS 照门固定环与 PPSh-41 防尘盖,确认二者互斥;
    - 尝试同时安装 SVDS 照门固定环与 TAPCO Intrafuse SKS 枪身套件,确认二者互斥;
    - 尝试把 SVDS 照门固定环护木槽可装的原版 SVDS 护木装到 PPSh-41 上,确认二者互斥。
@@ -81,8 +84,8 @@ The slot names should cover `mod_scope`, `mod_sight_front`, `mod_sight_rear`, `m
    - mount the StormWerkz top cover rail or MP-18 scope base on the CR 200DS / CR 50DS front sight slot;
    - mount a 220 / 514 / 730 mm Mosin, SKS / OP-SKS 520 mm or SVT-40 625 mm barrel, mount the SVDS rear sight block, mount the M14ALCS (MOD-0) buttstock, or mount the Zveno PK buffer tube adapter, on the PPSh-41;
    - mount a TAPCO Intrafuse SKS chassis kit or a Fab Defence UAS SKS chassis kit in the PPSh-41 receiver slot;
-   - mount a Mosin 200 mm, M700, ORSIS T-5000M or SVDS barrel in the SVDS rear sight block's handguard slot;
-   - mount the TKPD railed dust cover on the sight slot of the SKS / OP-SKS rear sight blocks, the SVT-40 625 mm barrel or the SVDS rear sight block;
+   - mount a Mosin 200 mm, M700, ORSIS T-5000M, SVDS or SVT-40 625 mm barrel in the SVDS rear sight block's handguard slot;
+   - mount the TKPD railed dust cover on the sight slot of the SKS / OP-SKS rear sight blocks, the SVT-40 625 mm barrel or the SVDS rear sight block, and the 5 SKS gas-tube covers (OP-SKS standard, SKS wooden standard, TAPCO, Fab Defence UAS, ATI Monte Carlo) on the SVT-40 625 mm barrel's sight slot;
    - mount an AKM PBS-1 7.62x39 suppressor on the muzzle device slot of the RPD 520 mm barrel;
    - mount an MDR BLK LBL ALX bipod (16 or 20 model) on the front sight slot of the 730 mm standard Mosin barrel or the SVT-40 standard muzzle;
    - mount an M60 bipod on the rail slot of the AA-12 457 mm barrel;
@@ -95,6 +98,9 @@ The slot names should cover `mod_scope`, `mod_sight_front`, `mod_sight_rear`, `m
    - try mounting the TKPD railed dust cover together with the SKS / OP-SKS / SVT-40 / AVT-40 / SVDS weapons and confirm they are mutually exclusive;
    - try mounting a Mosin 200 mm / M700 / ORSIS T-5000M barrel in the SVDS rear sight block's handguard slot and then combining it with the SVDS weapon, and confirm they are mutually exclusive;
    - try mounting two SVDS barrels on the SVDS and confirm the SVDS barrel is exclusive with itself;
+   - try mounting two TKPD railed dust covers on the SVDS and confirm the TKPD railed dust cover is exclusive with itself;
+   - try combining the SVT-40 625 mm barrel accepted by the SVDS rear sight block's handguard slot with the SVDS weapon and confirm they are mutually exclusive;
+   - try mounting two MDR BLK LBL ALX 20 bipods and confirm the MDR BLK LBL ALX 20 bipod is exclusive with itself;
    - try mounting the SVDS rear sight block together with the PPSh-41 dust cover and confirm they are mutually exclusive;
    - try mounting the SVDS rear sight block together with the TAPCO Intrafuse SKS chassis kit and confirm they are mutually exclusive;
    - try mounting a vanilla SVDS handguard accepted by the SVDS rear sight block's handguard slot on the PPSh-41 and confirm they are mutually exclusive.

+ 49 - 6
src/Mod.cs

@@ -57,7 +57,11 @@ namespace Pj568.WeaponCrossModding;
 ///  36. 让 SVDS 照门固定环与 PPSh-41 防尘盖双向互不兼容;
 ///  37. 让 SVDS 照门固定环与 TAPCO Intrafuse SKS 枪身套件双向互不兼容;
 ///  38. 让 SVDS 照门固定环护木槽可装的 3 种原版 SVDS 护木与 PPSh-41 枪本体双向互不兼容;
-///  39. 让 Fab Defence UAS SKS 枪身套件的下导轨(mod_tactical_002)支持安装 MDR BLK LBL ALX 20 脚架。
+///  39. 让 Fab Defence UAS SKS 枪身套件的下导轨(mod_tactical_002)支持安装 MDR BLK LBL ALX 20 脚架;
+///  40. 让 SVDS 照门固定环的护木槽支持安装 SVT-40 625mm 枪管,且该枪管与 SVDS 枪本体双向互不兼容;
+///  41. 让 TKPD 导轨防尘盖与自身互斥,防止重复安装;
+///  42. 让 SVT-40 625mm 枪管的照门槽支持安装 5 种 SKS 导气管防尘盖;
+///  43. 让 MDR BLK LBL ALX 20 脚架与自身互斥,防止重复安装。
 ///
 /// 做法:往目标槽的 SlotFilter.Filter(HashSet&lt;MongoId&gt;)追加物品 id(幂等)。
 /// </summary>
@@ -112,6 +116,7 @@ public class WeaponCrossModdingPlugin(
     // MDR BLK LBL ALX 脚架(16 / 20 型号,由 WTT-ContentBackport 注入;安装于 730mm 标准莫辛枪管的前准星槽)。
     private const string AlxBipod16Id = "680f6d9a4d7624d36e06527b";
     private const string AlxBipod20Id = "680f7e4aeee716732708e84e";
+    private const string AlxBipod20Label = "MDR BLK LBL ALX 20 bipod";
 
     // PPSh-41 枪托槽兼容的枪托 / 握把。
     private const string BenelliM3TelescopicStockId = "6259c3387d6aab70bc23a18d"; // Benelli M3 可伸缩枪托
@@ -279,6 +284,16 @@ public class WeaponCrossModdingPlugin(
         ("5c471c6c2e221602b66cd9ae", "SVDS standard handguard"),
     ];
 
+    // 原生 SKS 导气箍 mod_mount_000 槽可装的 5 种导气管防尘盖(用于与 MDR BLK LBL ALX 20 脚架建立双向互斥)。
+    private static readonly (string Id, string Label)[] SksGasTubeCovers =
+    [
+        ("634f03d40384a3ba4f06f874", "OP-SKS standard gas cover"),
+        ("634f08a21f9f536910079b5a", "SKS wooden standard gas cover"),
+        ("653ecd065a1690d9d90491e6", "TAPCO SKS gas cover"),
+        ("653ece125a1690d9d90491e8", "Fab Defence UAS SKS gas cover"),
+        ("653ecc425a1690d9d90491e4", "ATI Monte Carlo SKS gas cover"),
+    ];
+
     // PPSh-41 枪托槽可装的全部枪托(用于与 SKS 枪身套件建立双向互斥;不含 KS-23 金属枪托)。
     private static readonly (string Id, string Label)[] Ppsh41StockConflicts =
     [
@@ -370,13 +385,14 @@ public class WeaponCrossModdingPlugin(
             AddItemIdsToSlot(items, SksRearSightBlockId, SksRearSightBlockLabel, SightRearSlotName, TkpdRailedDustCoverId);
             AddItemIdsToSlot(items, OpsksRearSightBlockId, OpsksRearSightBlockLabel, SightRearSlotName, TkpdRailedDustCoverId);
 
-            // SVT-40 625mm 枪管的 mod_sight_rear 照门槽:追加 TKPD 导轨防尘盖。
-            AddItemIdsToSlot(items, Svt40Barrel625Id, Svt40Barrel625Label, SightRearSlotName, TkpdRailedDustCoverId);
+            // SVT-40 625mm 枪管的 mod_sight_rear 照门槽:追加 TKPD 导轨防尘盖与 5 种 SKS 导气管防尘盖。
+            AddItemIdsToSlot(items, Svt40Barrel625Id, Svt40Barrel625Label, SightRearSlotName,
+                [TkpdRailedDustCoverId, .. SksGasTubeCovers.Select(x => x.Id)]);
 
-            // SVDS 照门固定环的 mod_handguard 护木槽:追加莫辛 200mm、M700 全部 4 种、ORSIS T-5000M 与 SVDS 枪管。
+            // SVDS 照门固定环的 mod_handguard 护木槽:追加莫辛 200mm、M700 全部 4 种、ORSIS T-5000M、SVDS 枪管与 SVT-40 625mm 枪管。
             AddItemIdsToSlot(items, SvdsRearSightBlockId, SvdsRearSightBlockLabel, HandguardSlotName,
                 MosinBarrel200Id, M700Barrel660Id, M700Barrel508ThreadedId, M700BarrelStainless660Id, M700BarrelStainless508ThreadedId, T5000Barrel660Id,
-                SvdsBarrelId);
+                SvdsBarrelId, Svt40Barrel625Id);
 
             // SVDS 照门固定环的 mod_sight_rear 照门槽:追加 TKPD 导轨防尘盖。
             AddItemIdsToSlot(items, SvdsRearSightBlockId, SvdsRearSightBlockLabel, SightRearSlotName, TkpdRailedDustCoverId);
@@ -396,12 +412,18 @@ public class WeaponCrossModdingPlugin(
             // TKPD 导轨防尘盖与 SKS / OP-SKS 枪本体互不兼容。
             AddDustCoverSksConflicts(items);
 
+            // TKPD 导轨防尘盖与自身互不兼容(防止重复安装)。
+            AddTkpdSelfConflict(items);
+
             // TKPD 导轨防尘盖与 SVT-40 / AVT-40 枪本体双向互不兼容。
             AddDustCoverSvtAvtConflicts(items);
 
             // SVDS 照门固定环引入的互斥(移植枪管、TKPD 与 SVDS 枪本体;SVDS 枪管防重;照门固定环与 PPSh-41 防尘盖)。
             AddSvdsConflicts(items);
 
+            // MDR BLK LBL ALX 20 脚架与自身互不兼容(防止重复安装)。
+            AddAlxBipod20SelfConflict(items);
+
             // Aim Sports“三轨”的第一个战术配件槽:追加多种前握把、SV-98 隔热带与 Fortis Shift 前握把。
             AddItemIdsToSlot(items, AimSportsTriRailId, AimSportsTriRailLabel, AimSportsTriRailTacticalSlotName, [.. AimSportsTriRailForegripIds, Sv98HeatRibbonId, FortisShiftForegripId]);
 
@@ -560,7 +582,7 @@ public class WeaponCrossModdingPlugin(
 
     /// <summary>
     /// SVDS 照门固定环引入的互斥(幂等):
-    /// 移植到护木槽的枪管与 SVDS 枪本体双向互斥(避免经照门固定环装到原版 SVDS 上);
+    /// 移植到护木槽的枪管(含 SVT-40 625mm 枪管)与 SVDS 枪本体双向互斥(避免经照门固定环装到原版 SVDS 上);
     /// TKPD 导轨防尘盖与 SVDS 枪本体双向互斥;SVDS 枪管与自身互斥(防止装两个);
     /// SVDS 照门固定环与 PPSh-41 防尘盖、TAPCO Intrafuse SKS 枪身套件双向互斥;
     /// SVDS 照门固定环护木槽的原版护木与 PPSh-41 枪本体双向互斥。
@@ -577,6 +599,10 @@ public class WeaponCrossModdingPlugin(
         AddConflictingItems(items, TkpdRailedDustCoverId, TkpdRailedDustCoverLabel, SvdsWeaponId);
         AddConflictingItems(items, SvdsWeaponId, "SVDS", TkpdRailedDustCoverId);
 
+        // SVDS 照门固定环护木槽新增的 SVT-40 625mm 枪管与 SVDS 枪本体双向互斥。
+        AddConflictingItems(items, Svt40Barrel625Id, Svt40Barrel625Label, SvdsWeaponId);
+        AddConflictingItems(items, SvdsWeaponId, "SVDS", Svt40Barrel625Id);
+
         AddConflictingItems(items, SvdsBarrelId, SvdsBarrelLabel, SvdsBarrelId);
 
         AddConflictingItems(items, SvdsRearSightBlockId, SvdsRearSightBlockLabel, Ppsh41DustCoverId);
@@ -592,6 +618,23 @@ public class WeaponCrossModdingPlugin(
         }
     }
 
+    /// <summary>
+    /// 让 TKPD 导轨防尘盖与自身互不兼容(幂等),防止重复安装。
+    /// </summary>
+    private void AddTkpdSelfConflict(Dictionary<MongoId, TemplateItem> items)
+    {
+        AddConflictingItems(items, TkpdRailedDustCoverId, TkpdRailedDustCoverLabel, TkpdRailedDustCoverId);
+    }
+
+    /// <summary>
+    /// 让 MDR BLK LBL ALX 20 脚架与自身互不兼容(幂等),防止重复安装。
+    /// ALX 20 由 WTT-ContentBackport 注入,若缺失则跳过。
+    /// </summary>
+    private void AddAlxBipod20SelfConflict(Dictionary<MongoId, TemplateItem> items)
+    {
+        AddConflictingItems(items, AlxBipod20Id, AlxBipod20Label, AlxBipod20Id);
+    }
+
     /// <summary>
     /// 往 <paramref name="ownerId"/> 的 ConflictingItems 追加 <paramref name="conflictIds"/>(幂等)。
     /// </summary>

+ 60 - 2
tests/WeaponCrossModding.Tests/ModTests.cs

@@ -85,6 +85,20 @@ public class WeaponCrossModdingPluginTests
     private const string SvdsModernizedKitId = "5e56991336989c75ab4f03f6";
     private const string SvdsRearSightId = "5c471b7e2e2216152006e46c";
 
+    private const string SksGasCoverOpsksStdId = "634f03d40384a3ba4f06f874";
+    private const string SksGasCoverSksWoodId = "634f08a21f9f536910079b5a";
+    private const string SksGasCoverTapcoId = "653ecd065a1690d9d90491e6";
+    private const string SksGasCoverFabId = "653ece125a1690d9d90491e8";
+    private const string SksGasCoverAtiId = "653ecc425a1690d9d90491e4";
+    private static readonly string[] SksGasCoverIds =
+    [
+        SksGasCoverOpsksStdId,
+        SksGasCoverSksWoodId,
+        SksGasCoverTapcoId,
+        SksGasCoverFabId,
+        SksGasCoverAtiId,
+    ];
+
     private const string Ppsh41StockId = "5ea03e9400685063ec28bfa4";
 
     private static readonly string[] Ppsh41StockCompatIds =
@@ -490,7 +504,8 @@ public class WeaponCrossModdingPluginTests
         }
         Assert.Contains(new MongoId(T5000Barrel660Id), filter);
         Assert.Contains(new MongoId(SvdsBarrelId), filter);
-        Assert.Equal(1 + 1 + M700BarrelIds.Length + 1 + 1, filter.Count);
+        Assert.Contains(new MongoId(Svt40Barrel625Id), filter);
+        Assert.Equal(1 + 1 + M700BarrelIds.Length + 1 + 1 + 1, filter.Count);
     }
 
     [Fact]
@@ -774,7 +789,11 @@ public class WeaponCrossModdingPluginTests
         var filter = FilterOf(barrel, "mod_sight_rear");
         Assert.Contains(new MongoId(Svt40RearSightId), filter);
         Assert.Contains(new MongoId(TkpdRailedDustCoverId), filter);
-        Assert.Equal(2, filter.Count);
+        foreach (string id in SksGasCoverIds)
+        {
+            Assert.Contains(new MongoId(id), filter);
+        }
+        Assert.Equal(2 + SksGasCoverIds.Length, filter.Count);
     }
 
     [Fact]
@@ -798,6 +817,45 @@ public class WeaponCrossModdingPluginTests
         Assert.Contains(new MongoId(TkpdRailedDustCoverId), avt.Properties!.ConflictingItems!);
     }
 
+    [Fact]
+    public async Task MakesTkpdDustCoverConflictWithItself()
+    {
+        var tkpdCover = ItemWithConflicts("TKPD railed dust cover");
+        var items = new Dictionary<MongoId, TemplateItem> { [new MongoId(TkpdRailedDustCoverId)] = tkpdCover };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        Assert.Contains(new MongoId(TkpdRailedDustCoverId), tkpdCover.Properties!.ConflictingItems!);
+    }
+
+    [Fact]
+    public async Task MakesSvt40BarrelConflictWithSvdsWeapon()
+    {
+        var svtBarrel = ItemWithConflicts("SVT-40 625mm barrel");
+        var svds = ItemWithConflicts("SVDS");
+        var items = new Dictionary<MongoId, TemplateItem>
+        {
+            [new MongoId(Svt40Barrel625Id)] = svtBarrel,
+            [new MongoId(SvdsWeaponId)] = svds,
+        };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        Assert.Contains(new MongoId(SvdsWeaponId), svtBarrel.Properties!.ConflictingItems!);
+        Assert.Contains(new MongoId(Svt40Barrel625Id), svds.Properties!.ConflictingItems!);
+    }
+
+    [Fact]
+    public async Task MakesAlxBipod20ConflictWithItself()
+    {
+        var alxBipod20 = ItemWithConflicts("MDR BLK LBL ALX 20 bipod");
+        var items = new Dictionary<MongoId, TemplateItem> { [new MongoId(AlxBipod20Id)] = alxBipod20 };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        Assert.Contains(new MongoId(AlxBipod20Id), alxBipod20.Properties!.ConflictingItems!);
+    }
+
     [Fact]
     public async Task MakesSksChassisKitsConflictWithPpsh41Stocks()
     {