This commit is contained in:
2025-09-10 14:47:33 +08:00
parent 26dba2f16b
commit 250844ab00
3 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@@ -64,6 +64,9 @@ namespace ArachnaeSwarm
// **调用我们自己的工具方法传入从XML获取的mutantDef** // **调用我们自己的工具方法传入从XML获取的mutantDef**
NecroticTransformationUtility.ResurrectAsCustomMutant(pawn, comp.Props.mutantDef, faction); NecroticTransformationUtility.ResurrectAsCustomMutant(pawn, comp.Props.mutantDef, faction);
// **关键修复在成功转化后立即移除导致转化的Hediff本身防止其残留**
pawn.health.RemoveHediff(this);
// 添加转化特效 // 添加转化特效
FleckMaker.ThrowSmoke(position.ToVector3Shifted(), map, 1.5f); FleckMaker.ThrowSmoke(position.ToVector3Shifted(), map, 1.5f);
FleckMaker.ThrowDustPuff(position.ToVector3Shifted(), map, 1.2f); FleckMaker.ThrowDustPuff(position.ToVector3Shifted(), map, 1.2f);