HediffToBodyparts - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

HediffToBodyParts is a custom structure to assign a hediff to a list of body parts:

    public class HediffToBodyparts
    {
        public HediffDef hediff;

        public List<BodyPartDef> bodyparts;

    }

How do I use this code?

The only current use of this structure is to use it on GeneExtension, on the hediffsToBodyParts field. For example, this applies a hediff called AG_NearBlindness to both of the pawn's eyes. Note that it's a list, so different hediffs can be applied to different lists of body parts:

<modExtensions>
	<li Class="VanillaGenesExpanded.GeneExtension">
		<hediffsToBodyParts>
			<li>
				<hediff>AG_NearBlindness</hediff>
				<bodyparts>
					<li>Eye</li>
					<li>Eye</li>
				</bodyparts>
			</li>
		</hediffsToBodyParts>
	</li>
</modExtensions>
⚠️ **GitHub.com Fallback** ⚠️