New Pawn Stats - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
The framework has a few StatDefs that can be used like the base game StatDefs. For example, you can make hediffs that modify these, add it as statFactors or statOffsets to apparel, genes, etc:
- Stat - Weapon range factor (VEF_VerbRangeFactor): The range on weapons is multiplied by this value.
- Stat - Ranged weapon cooldown factor (VEF_VerbCooldownFactor): The cooldown on weapons is multiplied by this value.
- Stat - Shield max energy offset (VEF_EnergyShieldEnergyMaxOffset): Offset of the maximum shield energy that the user can boost through various means.
- Stat - Shield max energy factor (VEF_EnergyShieldEnergyMaxFactor): Factor of the maximum shield energy that the user can boost through various means.
- Stat - Shield max energy (VEF_EnergyShieldEnergyMaxPawn): The maximum energy a shield generator can have at one time. More energy absorbs more damage.
- Stat - Shield recharge rate (VEF_EnergyShieldRechargeRatePawn): The rate at which a shield gains energy as long as it is not broken.
- Stat - Shield radius (VEF_EnergyShieldRadiusPawn): The area covered when the energy shield is active.
- Stat - Melee attack speed factor (VEF_MeleeAttackSpeedFactor): A multiplier on melee attack speed.
- Stat - Range attack speed factor (VEF_RangeAttackSpeedFactor): A multiplier on range attack speed.
- Stat - Melee attack damage factor (VEF_MeleeAttackDamageFactor): A multiplier on melee attack damage.
- Stat - Range attack damage factor (VEF_RangeAttackDamageFactor): A multiplier on range attack damage.
- Stat - Ranged Dodge Chance (VEF_RangedDodgeChance): Chance to dodge a ranged attack that would've otherwise hit.
- Stat - Body food capacity multiplier (VEF_FoodCapacityMultiplier): Increases the size of the pawn's hunger bar. This does not affect hunger.
- Stat - Growth point multiplier (VEF_GrowthPointMultiplier): Increases the amount of growth points accumulated by children when learning.
- Stat - Body size offset (VEF_BodySize_Offset): Increases the size of the pawn relative to their current size.
- Stat - Body size multiplier (VEF_BodySize_Multiplier): Increases the size of the pawn by a multiple of their current size.
- Stat - Cosmetic body size offset (VEF_CosmeticBodySize_Offset): Increases the size of the pawn relative to their current size.
- Stat - Cosmetic body size multiplier (VEF_CosmeticBodySize_Multiplier): Increases the size of the pawn by a multiple of their current size.
- Stat - Head size multiplier (VEF_HeadSize_Cosmetic): Scales the character's head on the rendering step.
- Stat - Pawn render offset (VEF_PawnRenderPosOffset): Modifies the pawn's rendered position in y-axis.
- Stat - Mass carry capacity (VEF_MassCarryCapacity): Total mass carrying capacity of the pawn in caravans.
- Stat - MTB Lovin Factor (VEF_MTBLovinFactor): A factor of the mean time between (MTB) this person looking for some lovin'.
- Stat - Thought duration factor - positive (VEF_PositiveThoughtDurationFactor): The duration of positive thoughts is multiplied by this value.
- Stat - Thought duration factor - neutral (VEF_NeutralThoughtDurationFactor): The duration of neutral thoughts is multiplied by this value.
- Stat - Thought duration factor - negative (VEF_NegativeThoughtDurationFactor): The duration of negative thoughts is multiplied by this value.
How do I use this code?
For example, here are the stat modifiers of Wake-up:
<statOffsets>
<WorkSpeedGlobal>0.5</WorkSpeedGlobal>
<MeditationFocusGain MayRequire="Ludeon.RimWorld.Royalty">0.2</MeditationFocusGain>
</statOffsets>
<statFactors>
<RestFallRateFactor>0.8</RestFallRateFactor>
</statFactors>
You can do a drug that does this:
<statOffsets>
<VEF_FoodCapacityMultiplier>0.2</VEF_FoodCapacityMultiplier>
<VEF_BodySize_Offset>0.2</VEF_BodySize_Offset>
</statOffsets>
<statFactors>
<VEF_MassCarryCapacity>1.2</VEF_MassCarryCapacity>
</statFactors>