Equipment with Prerequisites - SmArtKar/AthenaFramework GitHub Wiki
CompProperties_PrerequisiteEquippable
allows to make CompEquippable
objects require certain hediffs to be equipped.
public class CompProperties_PrerequisiteEquippable : CompProperties
{
// List of prerequisite hediffs that are required for apparel to be equipped
public List<HediffDef> prerequisites;
// List of equipment that the pawn should have for the item to be equipped
public List<ThingDef> equipmentPrerequisites;
// List of genes that the pawn should have for the item to be equipped
public List<GeneDef> genePrerequisites;
// If equipment should be dropped without perquisite hediffs
public bool dropWithoutPrerequisites = false;
// Text that's displayed when required hediffs are missing
public string cantReason = "Missing required hediffs";
}