Files
RickGrymes f827921c8d Merge keyed language XMLs and code fixes
Consolidate multiple keyed English language XMLs into Common/Languages/English/Keyed/FCPToolsKeyed.xml (removed ArmorRackKeys, Cages, Main, PowerArmor, RecipeGoodwill, Terminal, VATS). Update binaries in 1.6/Assemblies. Code changes: ensure generated enlistment pawns are set to player faction and join as colonists (ProvisionsInfo); add GetDisplayBodyType helper to ApparelExtensionUtility and a Harmony Prefix patch to override apparel body type during graphic lookup (Patches.cs); make CompTechprint float menu use a unified bench list and add requiredBench plus AllRequiredBenches helper to TechprintExtension to combine single and multiple required benches.
2026-05-12 13:52:57 -05:00

26 lines
756 B
C#

namespace FCP.Core;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class TechprintExtension : DefModExtension
{
public string baseLabel;
public string baseDescription;
public string texPath;
public ThingDef requiredBench;
public List<ThingDef> requiredBenches;
public List<ThingDef> AllRequiredBenches
{
get
{
if (requiredBench == null)
return requiredBenches;
if (requiredBenches == null)
return new List<ThingDef> { requiredBench };
var combined = new List<ThingDef>(requiredBenches);
if (!combined.Contains(requiredBench))
combined.Add(requiredBench);
return combined;
}
}
}