暂存feat(maintenance): 实现维护舱功能及可配置性

This commit is contained in:
2025-08-09 12:47:50 +08:00
parent a1998ba80e
commit f4fe41e24e
10 changed files with 49 additions and 31 deletions

View File

@@ -29,7 +29,7 @@ namespace WulaFallenEmpire
}
// Check if it needs more components
if (comp.storedComponents >= comp.capacity)
if (comp.storedComponents >= comp.Props.capacity)
{
return false;
}
@@ -55,7 +55,7 @@ namespace WulaFallenEmpire
}
Job job = JobMaker.MakeJob(JobDefOf_WULA.WULA_HaulToMaintenancePod, component, t);
job.count = Math.Min(component.stackCount, (int)(comp.capacity - comp.storedComponents));
job.count = Math.Min(component.stackCount, (int)(comp.Props.capacity - comp.storedComponents));
return job;
}