Gene HediffComps - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

HediffCompProperties_CustomBlood is a comp class that copies the custom blood properties of Gene Extension so they can be used through a hediff

        public ThingDef customBloodThingDef = null;
        public string customBloodIcon = "";
        public EffecterDef customBloodEffect = null;
        public FleshTypeDef customWoundsFromFleshtype = null;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the hediff you want to have this behaviour. For example:

<comps>
	<li Class="VEF.Genes.HediffCompProperties_CustomBlood ">
		<customBloodThingDef>Filth_GreenBlood</customBloodThingDef>
		<customBloodIcon>UI/Icons/Medical/GreenBlood_BleedingIcon</customBloodIcon>
		<customBloodEffect>Damage_HitGreenFlesh</customBloodEffect>
		<customWoundsFromFleshtype>GreenWoundsFlesh</customWoundsFromFleshtype>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️