暂存3
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user