Severity by Equipped - KonradHeinser/EBSGFramework GitHub Wiki

This comp sets the severity of the hediff based on the apparel of the pawn and/or the weapon they are holding:

    	<comps>
            <li Class="EBSGFramework.HediffCompProperties_SeverityByEquipped">
                
            </li>
        </comps>

These are the options available:

  • severity : Default (0) : The severity the hediff is set to if none of the equipment or apparel checks find valid items
  • check : How the comp should handle checking the lists. This must be filled in, and the options are FirstOfEach (find the first equipment and first apparel that the pawn has from the respective lists), EquipmentFirst (check equipment and equipmentTags first, and skip the apparel if any of the listed equipment is currently held), ApparelFirst (check apparel and apparelTags first, and skip the equipment if any of the listed apparel is currently worn), and All (get everything from all lists that the pawn is currently wielding/wearing). If you are only using one type (i.e. only equipment and equipmentTags have something in them), then set it to EquipmentFirst or ApparelFirst, depending on whichever one you are using.
  • equipment : A special list of items that uses the ThingDef for the node name, and the severity for the value (i.e. <Gun_Revolver>1</Gun_Revolver>)
  • equipmentTags : A special list of items that uses the weapon tags for the node name, and the severity for the value (i.e. <SimpleGun>1</SimpleGun>)
  • apparel : A special list of items that uses the ThingDef for the node name, and the severity for the value (i.e. <Apparel_KidRomper>1</Apparel_KidRomper>)
  • apparelTags : A special list of items that uses the apparel or default outfit tags for the node name, and the severity for the value (i.e. <IndustrialBasic>1</IndustrialBasic> and <Spacefarer>1</Spacefarer> respectively)

Note: If you give the name without a value (i.e. <Gun_Revolver /> or <IndustrialBasic />, then the value will be automatically assigned as 1 (i.e. <Gun_Revolver>1</Gun_Revolver> and <Gun_Revolver /> mean the same thing)

Note 2: The check will only use the first item found unless set to All, and will check for the ThingDefs before it looks for tags

⚠️ **GitHub.com Fallback** ⚠️