暂存3
This commit is contained in:
Binary file not shown.
@@ -230,8 +230,8 @@ namespace ArachnaeSwarm
|
||||
}
|
||||
pawn.timesRaisedAsShambler++;
|
||||
MutantUtility.RestoreUntilNotDowned(pawn);
|
||||
|
||||
if (pawn.Spawned && stun)
|
||||
|
||||
if (pawn.Spawned && stun)
|
||||
{
|
||||
pawn.Rotation = Rot4.South;
|
||||
if(compProps != null)
|
||||
|
||||
@@ -64,6 +64,9 @@ namespace ArachnaeSwarm
|
||||
// **调用我们自己的工具方法,传入从XML获取的mutantDef**
|
||||
NecroticTransformationUtility.ResurrectAsCustomMutant(pawn, comp.Props.mutantDef, faction);
|
||||
|
||||
// **关键修复:在成功转化后,立即移除导致转化的Hediff本身,防止其残留**
|
||||
pawn.health.RemoveHediff(this);
|
||||
|
||||
// 添加转化特效
|
||||
FleckMaker.ThrowSmoke(position.ToVector3Shifted(), map, 1.5f);
|
||||
FleckMaker.ThrowDustPuff(position.ToVector3Shifted(), map, 1.2f);
|
||||
|
||||
Reference in New Issue
Block a user