This commit is contained in:
2025-07-24 02:49:44 +08:00
parent afed374045
commit 98234950db
5 changed files with 29 additions and 23 deletions

View File

@@ -14,7 +14,8 @@ namespace WulaFallenEmpire
return null;
}
if (!WardenFeedUtility.ShouldBeFed(prisoner) || prisoner.health.hediffSet.HasHediff(DefDatabase<HediffDef>.GetNamed("WULA_ChargingHediff")))
Need_WulaEnergy wulaEnergyNeed = prisoner.needs.TryGetNeed<Need_WulaEnergy>();
if (wulaEnergyNeed == null || wulaEnergyNeed.CurLevelPercentage > def.GetModExtension<WorkGiverDefExtension_FeedWula>().feedThreshold)
{
return null;
}