hediff能量

This commit is contained in:
2025-07-22 19:31:18 +08:00
parent 15494e8a8e
commit 0dcebba343
8 changed files with 36 additions and 12 deletions

View File

@@ -26,6 +26,12 @@ namespace WulaFallenEmpire
return null;
}
// The prisoner must be in bed to be fed by a warden. If the job is not forced, they must also be unable to move.
if (!prisoner.InBed() || (!forced && prisoner.health.capacities.CapableOf(PawnCapacityDefOf.Moving)))
{
return null;
}
if (!TryFindBestEnergySourceFor(pawn, prisoner, out Thing energySource, out _))
{
return null;