This commit is contained in:
2025-09-10 14:41:40 +08:00
parent 17722d473a
commit 26dba2f16b
4 changed files with 8 additions and 3 deletions

Binary file not shown.

View File

@@ -41,6 +41,9 @@
<soundAttack>Pawn_Shambler_Attack</soundAttack>
<soundWounded>Pawn_Shambler_Wounded</soundWounded>
<soundDeath>Pawn_Shambler_Killed</soundDeath>
<removesHediffs>
<li>ARA_MimicNematode</li>
</removesHediffs>
<!-- Rendering -->
<renderNodeProperties>
<li Class="PawnRenderNodeProperties_Overlay">

View File

@@ -146,7 +146,6 @@ namespace ArachnaeSwarm
{
pawn.mindState.enemyTarget = alertedTarget;
pawn.mindState.lastEngageTargetTick = Find.TickManager.TicksGame; // 直接给public字段赋值绕过internal方法
pawn.jobs.EndCurrentJob(JobCondition.InterruptForced);
alertedTarget = null;
if (DebugViewSettings.drawShamblerAlertMote)
{

View File

@@ -35,8 +35,11 @@ namespace ArachnaeSwarm
// 创建并附加Pawn_MutantTracker使用我们从XML传入的mutantDef
pawn.mutant = new Pawn_MutantTracker(pawn, mutantDef, rotStage);
// 添加变异体核心Hediff
Hediff hediff = pawn.health.AddHediff(mutantDef.hediff);
// **调用原版健康再生方法此方法会读取MutantDef中的配置如removeAllInjuries并执行**
MutantUtility.RegenerateHealth(pawn);
// 添加变异体核心Hediff
Hediff hediff = pawn.health.AddHediff(mutantDef.hediff);
// 如果是我们自己的可配置变异体Hediff则调用其上升动画
if (hediff is Hediff_ConfigurableMutant configurableMutant)