Skip to content
Matthew Walls edited this page Oct 12, 2018 · 1 revision

"Apparel Extension" adds extra body part tags that are checked before a piece of apparel is determined to be unwearable. So many types of apparel can be worn together at the same time. This is great for adding things such as glasses, monocles, earrings, and more without removing hats.

For example, here is a ThingDef for a piece of "spectacles" apparel. This can now be worn alongside a hat, instead of taking up the hat's slot.

  <ThingDef ParentName="HatMakeableBase">
	<defName>Apparel_IndSpectacles</defName>
	<label>spectacles</label>
    <description>A pair of eyeglasses that make the user look slightly smarter. Can also improve vision.
<!-- Cut out lots of code -->
    <modExtensions>
	  <li Class="JecsTools.ApparelExtension">
	    <coverage>
		  <li>Eyes</li>
            </coverage>
	  </li>
    </modExtensions>	
<!-- End of example -->
  </ThingDef>