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

@@ -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)

View File

@@ -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);