This commit is contained in:
2026-02-26 17:34:01 +08:00
parent 9cebf0ed6a
commit b80485e10a
8 changed files with 494 additions and 177 deletions

View File

@@ -28,6 +28,22 @@ namespace WulaFallenEmpire
widget.AddSection("WULA_AutonomousMechsSection".Translate(), autonomousMechs);
WulaLog.Debug($"[WULA] Postfix: Added 'Autonomous Mechs' section with {autonomousMechs.Count} mechs.");
}
// 筛选出所有构装体
var WulaMechunits = transferables
.Where(x => {
if (x.ThingDef.category != ThingCategory.Pawn) return false;
var pawn = x.AnyThing as Pawn;
return pawn != null && pawn is Wulamechunit;
})
.ToList();
// 如果找到了任何构装体,就为它们添加一个新的分组
if (WulaMechunits.Any())
{
widget.AddSection("WULA_MechunitsSection".Translate(), WulaMechunits);
WulaLog.Debug($"[WULA] Postfix: Added 'Mechunits' section with {autonomousMechs.Count}.");
}
}
}
}