RimWorld

RimWorld

[SZ]淬炼国魂——传统派系和文化扩展 Chinese culture and faction and equipment expansion
Zarxes Apr 28, 2023 @ 1:02am
唐陌刀CE兼容性临时解决方案(MoDao CE compatibility solution)
目前版本中陌刀无CE补丁,导致使用时疯狂报错,以下是我参考了横刀和陌刀原版代码给出的临时解决方案,需要添加至[Steam]\workshop\content\294100\2597175850\CE\Patches\Tang_Melee.xml 文件结尾,缩进应该是不必要的。

The MoDao CE patch is currently missing from the mod, causing error logs and making it unusable. The following is my temporary solution based on HengDao and MoDao base Defs. Needs to be added in to the end of file: [Steam]\workshop\content\294100\2597175850\CE\Patches\Tang_Melee.xml
Indents should be neglectable.

<!-- -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="TW_MoDao"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>9</power>
<cooldownTime>0.9</cooldownTime>
<chanceFactor>0.15</chanceFactor>
<armorPenetrationBlunt>2.25</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>point</label>
<capacities>
<li>Stab</li>
</capacities>
<power>32</power>
<cooldownTime>0.93</cooldownTime>
<chanceFactor>1.00</chanceFactor>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
<armorPenetrationSharp>2.9</armorPenetrationSharp>
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>edge</label>
<capacities>
<li>Cut</li>
</capacities>
<power>30</power>
<cooldownTime>1.17</cooldownTime>
<chanceFactor>1.00</chanceFactor>
<armorPenetrationBlunt>3.25</armorPenetrationBlunt>
<armorPenetrationSharp>2.0</armorPenetrationSharp>
<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
</li>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="TW_MoDao"]/statBases</xpath>
<value>
<Bulk>7.5</Bulk>
<MeleeCounterParryBonus>0.8</MeleeCounterParryBonus>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="TW_MoDao"]</xpath>
<value>
<equippedStatOffsets>
<MeleeCritChance>0.46</MeleeCritChance>
<MeleeParryChance>0.20</MeleeParryChance>
<MeleeDodgeChance>0.2</MeleeDodgeChance>
</equippedStatOffsets>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="TW_MoDao"]/weaponTags</xpath>
<value>
<li>CE_OneHandedWeapon</li>
</value>
</Operation>