rimworld-overzealous/Defs/HediffDefs/Overzealous.xml

198 lines
7.4 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- Hediffs are RimWorld's status effects. They can influence different pawn stats, represent diseases, and more -->
<HediffDef>
<defName>OverzealousBody</defName>
<!-- Desired defName to reference and use the hediff -->
<label>overzealous body</label>
<!-- Sets the in-game display name for the hediff -->
<hediffClass>HediffWithComps</hediffClass>
<description>This body has power beyond comprehension.</description>
<!-- Defines the hediff class to use. Use HediffWithComps for general purposes. Vanilla classes:
Hediff_AddedPart
Hediff_Addiction
Hediff_Alcohol
Hediff_Hangover
Hediff_HeartAttack
Hediff_Implant
Hediff_Injury
Hediff_MissingPart
Hediff_Pregnant
HediffWithComps -->
<isBad>false</isBad>
<!-- Optional. Defaults to true. Some hediffs like bionic body parts or implants set this to false -->
<initialSeverity>1</initialSeverity>
<!-- Optional. Defaults to 0.001. Defines initial hediff severity -->
<!-- <naturallyHealed>false</naturallyHealed> -->
<!-- Optional. If set to true, the injury will heal even without treatment -->
<lethalSeverity>-1</lethalSeverity>
<!-- Optional. Defaults to -1 (insignificant). If the hediff's severity reaches this level, the pawn will die -->
<stages>
<!-- Stages are the hediff's active effects. Can set one or more -->
<li>
<!-- <label>stage_name</label> -->
<!-- Optional. Defines an in-game sub-label applied to the hediff at this stage -->
<minSeverity>0.5</minSeverity>
<!-- Optional. The stage effects will only be applied above a certain severity level -->
<lifeThreatening>false</lifeThreatening>
<painFactor>0</painFactor>
<!-- Optional. Defaults to 1. Sets a multiplier for pain as a result of this stage -->
<painOffset>-0.9</painOffset>
<!-- Optional. Changes pain by a flat number (negative values decrease pain, positive values increase pain) -->
<!-- <partEfficiencyFactor>50</partEfficiencyFactor> -->
<!-- Optional. Defaults to 1. If the hediff acts as a body part, defines the efficiency of the body part -->
<hungerRateFactor>1.3</hungerRateFactor>
<!-- Optional. Defaults to 1. Defines the hunger need's depletion rate. Higher values cause the need to deplete faster -->
<restFallFactor>0.3</restFallFactor>
<!-- Optional. Defaults to 1. Defines the rest need's depletion rate. Higher values cause the need to deplete faster -->
<!-- <setMinPartEfficiency>0.5</setMinPartEfficiency> -->
<!-- Optional. Defaults to -1 (insignificant). Defines a custom value for minimum body-part efficiency when the stage is active -->
<destroyPart>false</destroyPart>
<!-- Optional. If true, the hediff's host body-part will become destroyed when this stage is activated -->
<!-- <makeImmuneTo>HediffDefName</makeImmuneTo> -->
<!-- Optional. The pawn will be immune to a specific hediff when this stage is active -->
<capMods>
<!-- Optional. Causes the stage to offset certain capacities for the pawn -->
<li>
<capacity>BloodFiltration</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>BloodPumping</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Breathing</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Consciousness</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Eating</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Hearing</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Manipulation</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Metabolism</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Moving</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Sight</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
<li>
<capacity>Talking</capacity>
<offset>50</offset>
<setMax>50</setMax>
</li>
</capMods>
<statOffsets>
<!-- Optional. Can offset pawn stat(s) by value -->
<CarryingCapacity>500</CarryingCapacity>
<MassCapacity>500</MassCapacity>
<ComfyTemperatureMin>-50</ComfyTemperatureMin>
<ComfyTemperatureMax>50</ComfyTemperatureMax>
<ImmunityGainSpeed>10</ImmunityGainSpeed>
<ImmunityGainSpeedFactor>10</ImmunityGainSpeedFactor>
<MeleeDPS>5000</MeleeDPS>
<MeleeHitChance>5000</MeleeHitChance>
<MoveSpeed>50</MoveSpeed>
</statOffsets>
<!-- Available vanilla defNames:
AimingDelayFactor
BrewingSpeed
ButcheryFleshEfficiency
ButcheryFleshSpeed
ButcheryMechanoidEfficiency
ButcheryMechanoidSpeed
CarryingCapacity
ComfyTemperatureMax
ComfyTemperatureMin
ConstructFailChance
ConstructionSpeed
CookSpeed
DrugProductionSpeed
EatingSpeed
FixBrokenDownBuildingFailChance
FoodPoisonChance
GiftImpact
GlobalLearningFactor
HarvestFailChance
HealingSpeed
ImmunityGainSpeed
ImmunityGainSpeedFactor
MeatAmount
MedicalOperationSpeed
MeleeDPS
MeleeHitChance
MentalBreakThreshold
MiningSpeed
MoveSpeed
PlantWorkSpeed
PsychicSensitivity
RecruitPrisonerChance
ResearchSpeed
ResearchSpeedFactor
SculptingSpeed
ShootingAccuracy
SmeltingSpeed
SmithingSpeed
SmoothingSpeed
SocialImpact
StonecuttingSpeed
SurgerySuccessChance
TailoringSpeed
TameAnimalChance
ToxicSensitivity
TradePriceImprovement
TrainAnimalChance
WorkSpeedGlobal -->
</li>
</stages>
<tendable>false</tendable>
<!-- Optional. If true, the injury can be tended by a doctor -->
<chanceToCauseNoPain>0</chanceToCauseNoPain>
<!-- Optional. If set, the hediff might not trigger a pain tick when pain is calculated -->
<makesSickThought>false</makesSickThought>
<!-- Optional. If true, the pawn will receive a mood debuff due to being sick when the hediff is active -->
<makesAlert>true</makesAlert>
<!-- Optional. Defaults to true. No description available -->
<minSeverity>1</minSeverity>
<!-- Optional. Sets a minimum severity for the hediff -->
<maxSeverity>1</maxSeverity>
<!-- Optional. Sets a severity ceiling for the hediff -->
<scenarioCanAdd>true</scenarioCanAdd>
<!-- Optional. If false, scenarios can't manually add the hediff to pawns -->
<displayWound>false</displayWound>
<!-- Optional. If true, the pawn will be visually injured -->
<defaultLabelColor>(255, 200, 200)</defaultLabelColor>
<!-- Optional. White by default. Sets a custom text colour for the hediff's label -->
</HediffDef>
</Defs>