-
Notifications
You must be signed in to change notification settings - Fork 59
ApparelExtension
juanosarg edited this page Jun 29, 2025
·
4 revisions
ApparelExtension adds a few new behaviours to apparel:
public float? skillGainModifier;
public List<WorkTags> workDisables;
public List<SkillDef> skillDisables;
public List<StatModifier> equippedStatFactors;
public List<TraitDef> traitsOnEquip;
public List<TraitDef> traitsOnUnequip;
public List<PawnCapacityMinLevel> pawnCapacityMinLevels;
public bool preventDowning;
public bool preventKilling;
public float preventKillingUntilHealthHPPercentage = 1f;
public bool preventKillingUntilBrainMissing;
public bool preventBleeding;
public List<ThingDef> secondaryApparelGraphics;
public bool isUnifiedApparel;
public bool hideHead;
public bool showBodyInBedAlways;PawnCapacityMinLevel is a container class:
public class PawnCapacityMinLevel
{
public PawnCapacityDef capacity;
public float minLevel;
}Def extensions are added to the <modExtensions> tag of a ThingDef. For example, this is added to the jester outfit in VFE Medieval 2
<modExtensions>
<li Class="VEF.Apparels.ApparelExtension">
<skillGainModifier>0</skillGainModifier>
</li>
</modExtensions>And this is the dame dress in the same mod:
<modExtensions>
<li Class="VEF.Apparels.ApparelExtension">
<workDisables>
<li>ManualDumb</li>
</workDisables>
</li>
</modExtensions>- Abilities
- Aesthetic scaling
- Animal Behaviours
- Apparels
- Buildings
- Cooking
- Factions
- Genes
- Global
- Graphics
- Hediffs
- Maps
- Memes
- OptionalFeatures
- Pawns
- Planet
- Plants
- Storyteller
- Things
- Weapons
- Weathers
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Advanced Resource Processor
- Update to KCSG 2.0
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions