PartReplacement 配置

主配置 config/iguanatweakstconstruct.cfg 的 PartReplacement 分类,对应 工具部件替换。

⚠️ 本分类没有 partReplacement 这个总开关配置项。模块本身由 Pulse 的 Modules.cfg 控制(见 Modules.cfg 配置)。以下 4 项是该分类下的全部选项。

完整选项

配置键 类型 默认 范围 含义
removeMobHead boolean true — 替换工具头时移除头颅挖掘等级修饰符,使其可重新施加
XpPenality int 0 0~100 替换部件时扣除当前工具等级经验百分比的多少
PickBoostXpPenality int 5 0~100 替换镐头时扣除当前挖掘等级经验百分比的多少
HandleMagicalWood boolean true — 神奇木材部件的加成修饰符在替换时正确增减

XpPenality 的计算方式

配置项注释给出了精确定义:

How much of the current XP% shall be removed when replacing parts (So if you had 50%, and penality is 10% it'll remove 5% xp, resulting in 45%). Does not remove Skill Levels.

即 扣除量 = 当前经验百分比 × XpPenality / 100,且只扣经验、不扣等级。默认 0 表示不惩罚。

PickBoostXpPenality 的作用

配置项注释:

Useful to remove the mining level boost on part replacement.

默认 5 表示换镐头时抹掉 5% 的挖掘提升经验进度。结合 removeMobHead = true,实际效果是换头后需要重新积累才能保住提升过的挖掘等级。

removeMobHead 的注释明说两者应配合使用:

Removes the Mob Head Modifier on Tool-Head replacement, allowing it to be reapplied. Should be used with PickBoostXpPenality.

HandleMagicalWood

配置项注释:

If the bonus modifiers from magical wood parts should be properly removed or added from tool part swapping. If a uniform magical wood tool no longer becomes uniform, it will lose the +8/+11 bonus modifiers and vice versa.

处理「整把工具都是同一种神奇木材」时额外获得的 +8 / +11 加成修饰符在换件后的增减。

被替换时的数据清除

替换镐头会清空 HarvestLevel(重置为材料等级 - 1)、HarvestLevelModified(置 false)、HeadEXP(归零),以及 ModMiningLevelBoost 与 GemBoost 两个标记。详见 挖掘等级提升 与 工具部件替换。

相关