-
Notifications
You must be signed in to change notification settings - Fork 1
Protective Apparel
Source: ProtectiveApparelDef.cs and ProtectiveApparelDefs.xml
ProtectiveApparelDefs are special defs added by this framework, each one defines a list of apparel ThingDefs that provide immunity to gases.
There are 4 total ProtectiveApparelDefs, each one denoting a different level of coverage: Mouth, Face, Head, and Body.
The Mouth, Face, and Head ProtectiveApparelDefs also utilise XML inheritance, i.e. apparel that covers the head will also be considered as covering the face, and apparel that covers the face will also be considered as covering the mouth. The Body ProtectiveApparelDef is different, it denotes apparel that covers the whole body (ignoring the head).
These groupings allow for easy defining of a gas that requires full-body protection by using them in the ProtectiveApparel filter like so:
<SCGF.GasDef ParentName="GasBase">
<!-- ... -->
<immunityWhen Inherit="False">
<li Class="SCGF.Filters.ProtectiveApparel">
<types>
<!-- A pawn must have protective apparel on their body AND head in order to be immune to this GasDef. -->
<li>Body</li>
<li>Head</li>
</types>
</li>
</immunityWhen>
<!-- ... -->
</SCGF.GasDef>Protective apparel that covers the mouth, such as hi-tech face masks. Use for gases that target the respiratory system.

Important
This is used by GasBase, so you probably don't need to define it yourself (learn more).
Protective apparel that covers the whole face, such as gas masks. Use for gases that also target the eyes, mouth, or nose.

Protective apparel that covers the whole head, such as hazmat masks and hi-tech helmets. Use for gases that also target the ears.

Protective apparel that covers the whole body (excluding the head), such as hazmat suits and advanced armours. Use (in combination with Head) for gases that target the skin.


Noticed a mistake or have a suggestion to improve this page? Reach out via GitHub issues, Steam discussions, or mention me on Discord!