the trait

This commit is contained in:
Christoph J. Scherr 2024-06-01 14:35:31 +02:00
parent f07c63a6fc
commit 233874cfe8
2 changed files with 124 additions and 2 deletions

View File

@ -120,8 +120,6 @@
<MeleeDPS>100</MeleeDPS> <MeleeDPS>100</MeleeDPS>
<MeleeHitChance>100</MeleeHitChance> <MeleeHitChance>100</MeleeHitChance>
<MoveSpeed>100</MoveSpeed> <MoveSpeed>100</MoveSpeed>
<SocialImpact>5</SocialImpact>
<WorkSpeedGlobal>5</WorkSpeedGlobal>
</statOffsets> </statOffsets>
<!-- Available vanilla defNames: <!-- Available vanilla defNames:
AimingDelayFactor AimingDelayFactor

View File

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="utf-8" ?>
<TraitDefs>
<!-- Traits are permanent characteristics of pawns which make them unique. A pawn can have several traits -->
<TraitDef>
<defName>OverzealousTrait</defName>
<!-- Desired defName for referencing and using the trait -->
<commonality>0</commonality>
<!-- How likely a pawn is to receive this trait during random generation. Usually a number between 0 (never spawns) and 2 (more likely to spawn) -->
<degreeDatas>
<!-- Trait properties. This includes everything the trait actively influences -->
<li>
<label>Overzealous</label>
<!-- This is what the trait will be called in-game (during generation, in the "Character" tab etc.) -->
<description>NAME is special, HE has unnatural powers beyond imagination.</description>
<!-- Long-form description. Tip: You can use the following keywords (must be written in capital letters):
NAME (= pawn name)
HE (= he, she)
HECAP (= He, She)
HIM (= him, her)
HIS (= his, her)
HISCAP (= His, Her) -->
<statOffsets>
<!-- Optional. Modifies pawn stats by value. Negative numbers decrease the stat, positive numbers increase it -->
<SocialImpact>5</SocialImpact>
<WorkSpeedGlobal>5</WorkSpeedGlobal>
<!-- 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 -->
</statOffsets>
<skillGains>
<!-- Optional. Modifies pawn skills by value. Negative numbers decrease the skill, positive numbers increase it -->
<li>
<key>Construction</key>
<!-- Available vanilla defNames:
Animals
Artistic
Construction
Cooking
Crafting
Growing
Medicine
Melee
Mining
Research
Shooting
Social -->
<value>4</value>
</li>
<li>
<key>Medicine</key>
<value>6</value>
</li>
<li>
<key>Melee</key>
<value>20</value>
</li>
<li>
<key>Research</key>
<value>10</value>
</li>
<li>
<key>Shooting</key>
<value>6</value>
</li>
<li>
<key>Social</key>
<value>10</value>
</li>
</skillGains>
<socialFightChanceFactor>0.3</socialFightChanceFactor>
<!-- Optional. Defaults to 1. Multiplier for the pawn's likelihood of starting a social fight with another pawn -->
</li>
</degreeDatas>
</TraitDef>
</TraitDefs>