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