Hi there,
So I'm trying to patch the statBases of the Human pawn, but so far while the xpath is correct, it doesn't patch it nor throw up any errors.
So I'm trying to patch the statBases of the Human pawn, but so far while the xpath is correct, it doesn't patch it nor throw up any errors.
Code Select
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<!-- Makes ALL pawns superhumans -->
<li Class="PatchOperationAdd">
<xpath>
Defs/ThingDef[defName="Human"]/statBases
</xpath>
<value>
<!-- General -->
<GlobalLearningFactor>10000</GlobalLearningFactor>
<RestRateMultiplier>100</RestRateMultiplier>
<EatingSpeed>10000</EatingSpeed>
<ImmunityGainSpeed>10000</ImmunityGainSpeed>
<InjuryHealingFactor>10000</InjuryHealingFactor>
<CarryingCapacity>10000</CarryingCapacity>
<ForagedNutritionPerDay>100</ForagedNutritionPerDay>
<FilthRate>0</FilthRate>
<!-- Social Stats -->
<NegotiationAbility>10000</NegotiationAbility>
<PawnBeauty>10000</PawnBeauty>
<ArrestSuccessChance>10000</ArrestSuccessChance>
<TradePriceImprovement>10000</TradePriceImprovement>
<DrugSellPriceImprovement>10000</DrugSellPriceImprovement>
<SocialImpact>10000</SocialImpact>
<TameAnimalChance>10000</TameAnimalChance>
<TrainAnimalChance>10000</TrainAnimalChance>
<BondAnimalChanceFactor>10000</BondAnimalChanceFactor>
<!-- Medical -->
<MedicalTendSpeed>10000</MedicalTendSpeed>
<MedicalTendQuality>10000</MedicalTendQuality>
<MedicalOperationSpeed>10000</MedicalOperationSpeed>
<MedicalSurgerySuccessChance>10000</MedicalSurgerySuccessChance>
<!-- General Work -->
<WorkSpeedGlobal>1</WorkSpeedGlobal> <!-- I don't recommend making this higher-->
<MiningSpeed>10</MiningSpeed> <!-- Also this one -->
<DeepDrillingSpeed>10000</DeepDrillingSpeed>
<MiningYield>10</MiningYield> <!-- Any higher and it might flood all your stockpiles -->
<SmoothingSpeed>10000</SmoothingSpeed>
<ResearchSpeed>10</ResearchSpeed> <!-- And this one -->
<AnimalGatherSpeed>10000</AnimalGatherSpeed>
<AnimalGatherYield>100</AnimalGatherYield>
<PlantWorkSpeed>10000</PlantWorkSpeed>
<PlantHarvestYield>10</PlantHarvestYield>
<DrugHarvestYield>10</DrugHarvestYield>
<HuntingStealth>100</HuntingStealth>
<ConstructionSpeed>10000</ConstructionSpeed>
<ConstructSuccessChance>10000</ConstructSuccessChance>
<FixBrokenDownBuildingSuccessChance>10000</FixBrokenDownBuildingSuccessChance>
<!-- Crafting -->
<SmeltingSpeed>10000</SmeltingSpeed>
<GeneralLaborSpeed>10000</GeneralLaborSpeed>
<DrugSynthesisSpeed>10000</DrugSynthesisSpeed>
<CookSpeed>10000</CookSpeed>
<FoodPoisonChance>0</FoodPoisonChance>
<DrugCookingSpeed>10000</DrugCookingSpeed>
<ButcheryFleshSpeed>10000</ButcheryFleshSpeed>
<ButcheryMechanoidSpeed>10000</ButcheryMechanoidSpeed>
<ButcheryFleshEfficiency>10</ButcheryFleshEfficiency>
<ButcheryMechanoidEfficiency>1000</ButcheryMechanoidEfficiency>
</value>
</li>
</operations>
</Operation>
</Patch>