Browse Source

【新增】让 AA-12 457mm 兼容 MTs-255-12 收束器、玩具枪与 MXLR 弹仓兼容 20x70 霰弹

AA-12 457mm 枪管 mod_mount 新增兼容 MTs-255-12 收束器;20x1mm 玩具枪膛室与 MXLR .308 ME 5 发管状弹仓装填位新增兼容全部 11 种 20x70 规格霰弹(Caliber20g)。csproj 版本 0.18.0 → 0.18.1。
PJ568 1 month ago
parent
commit
e7d3fbb41c

+ 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.18.0</Version>
-    <AssemblyVersion>0.18.0.0</AssemblyVersion>
-    <FileVersion>0.18.0.0</FileVersion>
+    <Version>0.18.1</Version>
+    <AssemblyVersion>0.18.1.0</AssemblyVersion>
+    <FileVersion>0.18.1.0</FileVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
   </PropertyGroup>
 

+ 2 - 2
docs/compatibility.md

@@ -14,7 +14,7 @@
 - **原版物品**: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 枪本体互不兼容;SVDS 照门固定环护木槽可装的 SVT-40 / AVT-40 625mm 枪管与 SVDS 枪本体互不兼容;TKPD 导轨防尘盖与自身互不兼容(防止重复安装);MDR BLK LBL ALX 20 脚架与自身互不兼容(防止重复安装);5 种 SKS 导气管防尘盖与 UltiMAK M1-B AK 导气管套件彼此之间(含与自身)互不兼容,使一把武器上最多只能装一个。
-- **新增兼容**:Fab Defence UAS SKS 枪身套件的下导轨(`mod_tactical_002`)新增兼容 AK-100 系列聚合物护木可安装的全部 33 种前握把(含 Zenit RK 系列、BCM MOD.3、KAC、ASh-12、Tactical Dynamics 镂空、TangoDown Stubby BGV-MK46K 三色、Fortis Shift 等);Alpha Dog Alpha 9 9x19 声音抑制器的 `mod_scope` 槽新增兼容 M14 SAGE International DCSB 瞄具基座;Marlin MXLR .308 ME 杠杆步枪的 5 发管状弹仓新增兼容全部 7 种 7.62x25 托卡列夫弹药;20x1mm 玩具枪的 `mod_magazine` 槽新增兼容 Marlin MXLR 的 5 发管状弹仓;EMTI-019 基座的 `mod_scope` 槽新增兼容 DCSB 瞄具基座;MTs-255-12 的护木槽新增兼容 MP-18 的全部护木,枪托槽新增兼容雷明顿 Model 870 的 Magpul SGA、Remington SPS 与 Shockwave Raptor 枪托;116mm TT 自制螺纹枪管的枪口槽新增兼容 Alpha Dog Alpha 9 9x19 消音器;AA-12 Gen2 的瞄具槽新增兼容 La Rue Tactical QD LT-101 皮卡汀尼立管导轨基座。
+- **新增兼容**:Fab Defence UAS SKS 枪身套件的下导轨(`mod_tactical_002`)新增兼容 AK-100 系列聚合物护木可安装的全部 33 种前握把(含 Zenit RK 系列、BCM MOD.3、KAC、ASh-12、Tactical Dynamics 镂空、TangoDown Stubby BGV-MK46K 三色、Fortis Shift 等);Alpha Dog Alpha 9 9x19 声音抑制器的 `mod_scope` 槽新增兼容 M14 SAGE International DCSB 瞄具基座;Marlin MXLR .308 ME 杠杆步枪的 5 发管状弹仓新增兼容全部 7 种 7.62x25 托卡列夫弹药;20x1mm 玩具枪的 `mod_magazine` 槽新增兼容 Marlin MXLR 的 5 发管状弹仓;EMTI-019 基座的 `mod_scope` 槽新增兼容 DCSB 瞄具基座;MTs-255-12 的护木槽新增兼容 MP-18 的全部护木,枪托槽新增兼容雷明顿 Model 870 的 Magpul SGA、Remington SPS 与 Shockwave Raptor 枪托;116mm TT 自制螺纹枪管的枪口槽新增兼容 Alpha Dog Alpha 9 9x19 消音器;AA-12 Gen2 的瞄具槽新增兼容 La Rue Tactical QD LT-101 皮卡汀尼立管导轨基座;AA-12 12ga 457mm 枪管的导轨槽(`mod_mount`)新增兼容 MTs-255-12 12ga 收束器(Remington Tactical Choke);20x1mm 玩具枪的膛室与 MXLR .308 ME 5 发管状弹仓的装填位,均支持全部 11 种 20x70 规格霰弹(Caliber20g)。
 - 插件只改写物品数据库,不注册 Harmony patch,也不与客户端插件争抢运行时方法。
 
 ## 已知限制
@@ -53,7 +53,7 @@
 - **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; 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 5 SKS gas-tube covers and the UltiMAK M1-B AK gas tube kit are mutually incompatible with each other (including with themselves), so at most one can be installed on a weapon.
-- **New compatibility**: the Fab Defence UAS SKS chassis kit's lower rail (`mod_tactical_002`) now accepts all 33 foregrips compatible with the AK-100 series polymer handguards (Zenit RK series, BCM MOD.3, KAC, ASh-12, Tactical Dynamics skeletonized, TangoDown Stubby BGV-MK46K in three colors, Fortis Shift, and 25 others); the Alpha Dog Alpha 9 9x19 sound suppressor's `mod_scope` slot now accepts the M14 SAGE International DCSB scope mount; the Marlin MXLR .308 ME lever-action rifle's 5-round tubular magazine now accepts all 7 types of 7.62x25 Tokarev ammunition; the 20x1mm toy gun's `mod_magazine` slot now accepts the Marlin MXLR 5-round tubular magazine; the EMTI-019 mount's `mod_scope` slot now accepts the DCSB scope mount; the MTs-255-12's handguard slot now accepts all MP-18 handguards and its stock slot now accepts the Remington Model 870's Magpul SGA, Remington SPS and Shockwave Raptor stocks; the 116 mm TT handmade threaded barrel's muzzle slot now accepts the Alpha Dog Alpha 9 9x19 suppressor; the AA-12 Gen2's scope slot now accepts the La Rue Tactical QD LT-101 Picatinny riser mount.
+- **New compatibility**: the Fab Defence UAS SKS chassis kit's lower rail (`mod_tactical_002`) now accepts all 33 foregrips compatible with the AK-100 series polymer handguards (Zenit RK series, BCM MOD.3, KAC, ASh-12, Tactical Dynamics skeletonized, TangoDown Stubby BGV-MK46K in three colors, Fortis Shift, and 25 others); the Alpha Dog Alpha 9 9x19 sound suppressor's `mod_scope` slot now accepts the M14 SAGE International DCSB scope mount; the Marlin MXLR .308 ME lever-action rifle's 5-round tubular magazine now accepts all 7 types of 7.62x25 Tokarev ammunition; the 20x1mm toy gun's `mod_magazine` slot now accepts the Marlin MXLR 5-round tubular magazine; the EMTI-019 mount's `mod_scope` slot now accepts the DCSB scope mount; the MTs-255-12's handguard slot now accepts all MP-18 handguards and its stock slot now accepts the Remington Model 870's Magpul SGA, Remington SPS and Shockwave Raptor stocks; the 116 mm TT handmade threaded barrel's muzzle slot now accepts the Alpha Dog Alpha 9 9x19 suppressor; the AA-12 Gen2's scope slot now accepts the La Rue Tactical QD LT-101 Picatinny riser mount; the AA-12 12ga 457 mm barrel's `mod_mount` slot now accepts the MTs-255-12 12ga choke (Remington Tactical Choke); the chamber of the 20x1mm toy gun and the cartridge slot of the MXLR .308 ME 5-round tubular magazine both now accept all 11 types of 20x70 gauge shells (Caliber20g).
 - The plugin only rewrites the item database. It registers no Harmony patch and never contends with client plugins for runtime methods.
 
 ## Known Limitations

+ 4 - 0
docs/features.md

@@ -25,6 +25,8 @@
 - MTs-255-12 12 号左轮霰弹枪的 `mod_handguard` 护木槽:新增 MP-18 的全部护木(木制、塑料);其 `mod_stock` 枪托槽:新增雷明顿 Model 870 的 Magpul SGA、Remington SPS 与 Shockwave Raptor 枪托(不含 Mesa Tactical LEO 转接器与 Fab Defence AGR 握把)。
 - 116mm 7.62x25 TT 自制螺纹枪管的 `mod_muzzle` 枪口槽:新增 Alpha Dog Alpha 9 9x19 声音抑制器。
 - AA-12 Gen2 (MPS Auto Assault-12 Gen2) 的 `mod_scope` 瞄具槽:新增 La Rue Tactical QD LT-101 皮卡汀尼立管导轨基座。
+- AA-12 12ga 457mm 枪管的导轨槽(`mod_mount`)支持安装 MTs-255-12 12ga 收束器(Remington Tactical Choke)。
+- 20x1mm 玩具枪的膛室与 MXLR .308 ME 5 发管状弹仓的装填位,均支持全部 11 种 20x70 规格霰弹(Caliber20g),该规格霰弹原本被 MC 20-01 Sb.3 12ga 2 发 TOZ-106 弹匣兼容。
 
 ## 弹药与口径
 
@@ -89,6 +91,8 @@
 - `mod_handguard` slot of the MTs-255-12 12ga revolver shotgun: adds all MP-18 handguards (wooden, plastic); its `mod_stock` slot: adds the Remington Model 870's Magpul SGA, Remington SPS and Shockwave Raptor stocks (excluding the Mesa Tactical LEO stock adapter and the Fab Defence AGR pistol grip).
 - `mod_muzzle` slot of the 116 mm 7.62x25 TT handmade threaded barrel: adds the Alpha Dog Alpha 9 9x19 sound suppressor.
 - `mod_scope` slot of the AA-12 Gen2 (MPS Auto Assault-12 Gen2): adds the La Rue Tactical QD LT-101 Picatinny riser mount.
+- `mod_mount` slot of the AA-12 12ga 457 mm barrel: adds the MTs-255-12 12ga choke (Remington Tactical Choke).
+- Chamber of the 20x1mm toy gun and cartridge slot of the MXLR .308 ME 5-round tubular magazine: both accept all 11 types of 20x70 gauge shells (Caliber20g), which are natively accepted by the MC 20-01 Sb.3 12ga 2-round TOZ-106 magazine.
 
 ## Ammunition and caliber
 

+ 4 - 0
docs/verification.md

@@ -37,6 +37,10 @@
    - 在 MTs-255-12 的护木槽(`mod_handguard`)安装 MP-18 的护木(木制 / 塑料),在其枪托槽(`mod_stock`)安装雷明顿 Model 870 的任一枪托(如 Magpul SGA、Remington SPS),确认均可安装;
    - 在 116mm TT 自制螺纹枪管的枪口槽(`mod_muzzle`)安装 Alpha Dog Alpha 9 9x19 消音器,确认可安装;
    - 在 AA-12 Gen2 的瞄具槽(`mod_scope`)安装 La Rue Tactical QD LT-101 皮卡汀尼立管导轨基座,确认可安装;
+   - 在 AA-12 457mm 枪管的导轨槽(`mod_mount`)安装 MTs-255-12 12ga 收束器(Remington Tactical Choke),确认可安装;
+   - 在 20x1mm 玩具枪的膛室(`Chambers`)安装 20x70 规格霰弹(如 20x70 buckshot、20x70 slug star 等),在 MXLR .308 ME 5 发管状弹仓的装填位(`Cartridges`)安装 20x70 规格霰弹,确认均可安装;
+   - 在 116mm TT 自制螺纹枪管的枪口槽(`mod_muzzle`)安装 Alpha Dog Alpha 9 9x19 消音器,确认可安装;
+   - 在 AA-12 Gen2 的瞄具槽(`mod_scope`)安装 La Rue Tactical QD LT-101 皮卡汀尼立管导轨基座,确认可安装;
    - 清客户端缓存后,验证 7.62x25 供弹链路:给 Marlin MXLR 的 5 发管状弹仓压入 7.62x25 托卡列夫子弹,插入玩具枪的 `mod_magazine` 槽,尝试开火;同时确认玩具枪原装 20x1mm 玩具弹仍可使用;
    - 尝试同时安装 PPSh-41 防尘盖与 HUXWRX HX-QD 消音器,确认二者互斥;
    - 尝试在 PPSh-41 上同时安装 SKS 枪身套件与任一非 KS-23 枪托(含 Zveno 缓冲管转接器),确认二者互斥;

+ 32 - 0
src/Mod.cs

@@ -77,6 +77,9 @@ namespace Pj568.WeaponCrossModding;
 ///      (不含 Mesa Tactical LEO 转接器与 Fab Defence AGR 握把)。
 ///  54. 让 116mm 7.62x25 TT 自制螺纹枪管的枪口槽(mod_muzzle)支持安装 Alpha Dog Alpha 9 9x19 声音抑制器。
 ///  55. 让 AA-12 Gen2 的瞄具槽(mod_scope)支持安装 La Rue Tactical QD LT-101 皮卡汀尼立管导轨基座。
+///  56. 让 AA-12 12ga 457mm 枪管的导轨槽(mod_mount)支持安装 MTs-255-12 12ga 收束器(Remington Tactical Choke)。
+///  57. 让 20x1mm 玩具枪的膛室与弹匣装填位、以及 MXLR .308 ME 5 发管状弹仓的装填位,
+///      均支持全部 11 种 20x70 规格霰弹(Caliber20g)。
 ///
 /// 做法:往目标槽的 SlotFilter.Filter(HashSet&lt;MongoId&gt;)追加物品 id(幂等)。
 /// </summary>
@@ -267,6 +270,9 @@ public class WeaponCrossModdingPlugin(
     // AA-12 457mm 枪管(mod_mount 导轨槽宿主)。
     private const string Aa12Barrel457Id = "670fced86a7e274b1a0964e8";
 
+    // MTs-255-12 12ga 收束器(Remington Tactical Choke 12g,可装于 AA-12 457mm 枪管 mod_mount 槽)。
+    private const string Mts255ChokeId = "619d36da53b4d42ee724fae4";
+
     // AA-12 Gen2 (MPS Auto Assault-12 Gen2) 自动霰弹枪(mod_scope 瞄具槽宿主)。
     private const string Aa12Gen2Id = "67124dcfa3541f2a1f0e788b";
 
@@ -356,6 +362,22 @@ public class WeaponCrossModdingPlugin(
         ("573603c924597764442bd9cb", "T Gzh"),
     ];
 
+    // 20x70 规格霰弹(Caliber20g)全部 11 种——兼容 MC 20-01 Sb.3 2 发弹匣。
+    private static readonly (string Id, string Label)[] Caliber20gShells =
+    [
+        ("5a38ebd9c4a282000d722a5b", "20x70 buckshot"),
+        ("5d6e695fa4b936359b35d852", "20x70 buckshot 56"),
+        ("5d6e69b9a4b9361bc8618958", "20x70 buckshot 62"),
+        ("5d6e69c7a4b9360b6c0d54e4", "20x70 buckshot 73"),
+        ("5d6e6a05a4b93618084f58d0", "20x70 slug star"),
+        ("5d6e6a42a4b9364f07165f52", "20x70 slug poleva 6u"),
+        ("5d6e6a53a4b9361bd473feec", "20x70 slug poleva 3"),
+        ("5d6e6a5fa4b93614ec501745", "20x70 slug broadhead"),
+        ("6601380580e77cfd080e3418", "20x70 flechette"),
+        ("660137d8481cc6907a0c5cda", "20x70 slug ap"),
+        ("660137ef76c1b56143052be8", "20x70 slug dg"),
+    ];
+
     // EMTI-019 基座(游戏本体自带,非 Mod 物品):其瞄具槽支持 DCSB 瞄具基座。
     private const string EmtiId = "5dfe14f30b92095fd441edaf";
     private const string EmtiLabel = "EMTI-019 mount";
@@ -470,6 +492,7 @@ public class WeaponCrossModdingPlugin(
     private const string Aa12Gen2Label = "AA-12 Gen2";
     private const string Mp18RifleLabel = "MP-18 rifle";
     private const string Mts255Label = "MTs-255-12";
+    private const string Mts255ChokeLabel = "MTs-255-12 choke";
     private const string MarlinMxlrLabel = "Marlin MXLR";
     private const string SksRearSightBlockLabel = "SKS rear sight block";
     private const string OpsksRearSightBlockLabel = "OP-SKS rear sight block";
@@ -621,6 +644,15 @@ public class WeaponCrossModdingPlugin(
             // EMTI-019 基座的 mod_scope 槽:追加 DCSB 瞄具基座。
             AddItemIdsToSlot(items, EmtiId, EmtiLabel, ScopeSlotName, M14DcsbMountId);
 
+            // AA-12 457mm 枪管的 mod_mount 导轨槽:追加 MTs-255-12 收束器。
+            AddItemIdsToSlot(items, Aa12Barrel457Id, Aa12Barrel457Label, MountSlotName, Mts255ChokeId);
+
+            // 20x1mm 玩具枪的膛室:追加全部 11 种 20x70 规格霰弹。
+            AddAmmoIdsToContainer(items, ToyGunId, ToyGunLabel, isChamber: true, [.. Caliber20gShells.Select(x => x.Id)]);
+
+            // MXLR .308 ME 5 发管状弹仓的装填位:追加全部 11 种 20x70 规格霰弹。
+            AddAmmoIdsToContainer(items, MxlrMagId, MxlrMagLabel, isChamber: false, [.. Caliber20gShells.Select(x => x.Id)]);
+
             // 116mm 7.62x25 TT 自制螺纹枪管的 mod_muzzle 枪口槽:追加 Alpha Dog Alpha 9 9x19 声音抑制器。
             AddItemIdsToSlot(items, TtBarrel116ThreadedId, TtBarrel116ThreadedLabel, MuzzleSlotName, AlphaDogSuppressorId);
 

+ 90 - 4
tests/WeaponCrossModding.Tests/ModTests.cs

@@ -178,6 +178,25 @@ public class WeaponCrossModdingPluginTests
     private const string Aa12Gen2ExistingScopeId = "57ae0171245977343c27bfcf";
     private const string LaRueLt101Id = "5c064c400db834001d23f468";
 
+    // AA-12 457mm 枪管、MTs-255-12 收束器。
+    private const string Mts255ChokeId = "619d36da53b4d42ee724fae4";
+
+    // 20x70 规格霰弹(Caliber20g)全部 11 种。
+    private static readonly string[] Caliber20gShellIds =
+    [
+        "5a38ebd9c4a282000d722a5b", // 20x70 buckshot
+        "5d6e695fa4b936359b35d852", // 20x70 buckshot 56
+        "5d6e69b9a4b9361bc8618958", // 20x70 buckshot 62
+        "5d6e69c7a4b9360b6c0d54e4", // 20x70 buckshot 73
+        "5d6e6a05a4b93618084f58d0", // 20x70 slug star
+        "5d6e6a42a4b9364f07165f52", // 20x70 slug poleva 6u
+        "5d6e6a53a4b9361bd473feec", // 20x70 slug poleva 3
+        "5d6e6a5fa4b93614ec501745", // 20x70 slug broadhead
+        "6601380580e77cfd080e3418", // 20x70 flechette
+        "660137d8481cc6907a0c5cda", // 20x70 slug ap
+        "660137ef76c1b56143052be8", // 20x70 slug dg
+    ];
+
     // 20x1mm 玩具枪、其原装弹匣与玩具弹,以及 7.62x25 托卡列夫全部 7 种弹药。
     private const string ToyGunId = "66015072e9f84d5680039678";
     private const string ToyGunMagId = "66015dc4aaad2f54cb04c56a";
@@ -772,7 +791,8 @@ public class WeaponCrossModdingPluginTests
         var filter = FilterOf(barrel, "mod_mount");
         Assert.Contains(new MongoId(Aa12MountExistingId), filter);
         Assert.Contains(new MongoId(M60BipodId), filter);
-        Assert.Equal(2, filter.Count);
+        Assert.Contains(new MongoId(Mts255ChokeId), filter);
+        Assert.Equal(3, filter.Count);
     }
 
     [Fact]
@@ -1060,7 +1080,11 @@ public class WeaponCrossModdingPluginTests
         {
             Assert.Contains(new MongoId(id), filter);
         }
-        Assert.Equal(1 + Caliber762x25AmmoIds.Length, filter.Count);
+        foreach (string id in Caliber20gShellIds)
+        {
+            Assert.Contains(new MongoId(id), filter);
+        }
+        Assert.Equal(1 + Caliber762x25AmmoIds.Length + Caliber20gShellIds.Length, filter.Count);
 
         // 实验性最小改法:不动单值 ammoCaliber,仅补白名单,故 20x1mm 能力保留。
         Assert.Equal("Caliber20x1mm", gun.Properties.AmmoCaliber);
@@ -1099,7 +1123,7 @@ public class WeaponCrossModdingPluginTests
         await plugin.OnLoadAsync(CancellationToken.None);
         await plugin.OnLoadAsync(CancellationToken.None);
 
-        Assert.Equal(1 + Caliber762x25AmmoIds.Length, AmmoFilterOf(gun, isChamber: true).Count);
+        Assert.Equal(1 + Caliber762x25AmmoIds.Length + Caliber20gShellIds.Length, AmmoFilterOf(gun, isChamber: true).Count);
         Assert.Single(AmmoFilterOf(mag, isChamber: false));
     }
 
@@ -1131,7 +1155,11 @@ public class WeaponCrossModdingPluginTests
         {
             Assert.Contains(new MongoId(id), filter);
         }
-        Assert.Equal(1 + Caliber762x25AmmoIds.Length, filter.Count);
+        foreach (string id in Caliber20gShellIds)
+        {
+            Assert.Contains(new MongoId(id), filter);
+        }
+        Assert.Equal(1 + Caliber762x25AmmoIds.Length + Caliber20gShellIds.Length, filter.Count);
     }
 
     [Fact]
@@ -1221,6 +1249,64 @@ public class WeaponCrossModdingPluginTests
         Assert.Equal(2, filter.Count);
     }
 
+    [Fact]
+    public async Task AddsMts255ChokeToAa12457BarrelMountSlot()
+    {
+        var barrel = ItemWithSlot("barrel_aa12_mps_457mm", "mod_mount", Aa12MountExistingId);
+        var items = new Dictionary<MongoId, TemplateItem> { [new MongoId(Aa12457BarrelId)] = barrel };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        var filter = FilterOf(barrel, "mod_mount");
+        Assert.Contains(new MongoId(Aa12MountExistingId), filter);
+        Assert.Contains(new MongoId(Mts255ChokeId), filter);
+        Assert.Contains(new MongoId(M60BipodId), filter);
+        Assert.Equal(3, filter.Count);
+    }
+
+    [Fact]
+    public async Task Adds20x70ShellsToToyGunChamber()
+    {
+        var gun = ItemWithAmmoContainer("weapon_ussr_pd_20x1mm", isChamber: true, ToyAmmoId);
+        var items = new Dictionary<MongoId, TemplateItem> { [new MongoId(ToyGunId)] = gun };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        var chamberFilter = AmmoFilterOf(gun, isChamber: true);
+
+        Assert.Contains(new MongoId(ToyAmmoId), chamberFilter);
+        foreach (string id in Caliber20gShellIds)
+        {
+            Assert.Contains(new MongoId(id), chamberFilter);
+        }
+        foreach (string id in Caliber762x25AmmoIds)
+        {
+            Assert.Contains(new MongoId(id), chamberFilter);
+        }
+        Assert.Equal(1 + Caliber20gShellIds.Length + Caliber762x25AmmoIds.Length, chamberFilter.Count);
+    }
+
+    [Fact]
+    public async Task Adds20x70ShellsToMxlrMagazine()
+    {
+        var mag = ItemWithAmmoContainer("mag_m1895_marlin_mxlr_784x49_5", isChamber: false, "67c540c3d0538d12ec036c08");
+        var items = new Dictionary<MongoId, TemplateItem> { [new MongoId(MxlrMagId)] = mag };
+
+        await BuildPlugin(items).OnLoadAsync(CancellationToken.None);
+
+        var filter = AmmoFilterOf(mag, isChamber: false);
+        Assert.Contains(new MongoId("67c540c3d0538d12ec036c08"), filter);
+        foreach (string id in Caliber762x25AmmoIds)
+        {
+            Assert.Contains(new MongoId(id), filter);
+        }
+        foreach (string id in Caliber20gShellIds)
+        {
+            Assert.Contains(new MongoId(id), filter);
+        }
+        Assert.Equal(1 + Caliber762x25AmmoIds.Length + Caliber20gShellIds.Length, filter.Count);
+    }
+
     [Fact]
     public async Task MissingItemsDoNotThrow()
     {