到底有多强

This commit is contained in:
Tourswen
2025-11-12 00:32:52 +08:00
parent 40b0cdbb05
commit c2b23554cc
67 changed files with 769 additions and 425 deletions

View File

@@ -109,6 +109,16 @@ namespace WulaFallenEmpire
return CanBeAutonomous;
}
}
public bool IsInCombatMode
{
get
{
if (MechPawn == null || MechPawn.Dead || MechPawn.Downed)
return false;
// 被征召或处于自主战斗模式
return MechPawn.Drafted || (CanFightAutonomously && MechPawn.mindState?.duty?.def == DutyDefOf.AssaultColony);
}
}
// 在 CompAutonomousMech 类中添加这个新属性
public bool CanFightAutonomously