mirror of
https://github.com/FalloutCollaborationProject/FCP-Tools.git
synced 2026-07-27 16:59:37 -07:00
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.
26 lines
756 B
C#
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;
|
|
}
|
|
}
|
|
} |