RimWorld

RimWorld

Gulden Biome
This topic has been locked
Raizan 4 Jul, 2024 @ 1:00am
Fix for the gulden rat.
<ThingDef Abstract="True" ParentName="AnimalThingBase" Name="GuldenRatThingBase">
<statBases>
<MoveSpeed>4.0</MoveSpeed>
<MarketValue>35</MarketValue>
<ComfyTemperatureMin>-30</ComfyTemperatureMin>
<ToxicEnvironmentResistance MayRequire="Ludeon.RimWorld.Biotech">0.9</ToxicEnvironmentResistance>
</statBases>
<tools>
<li>
<label>left claw</label>
<labelNoLocation>claw</labelNoLocation>
<capacities>
<li>Scratch</li>
</capacities>
<power>3.6</power>
<cooldownTime>1.5</cooldownTime>
<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
</li>
<li>
<label>right claw</label>
<labelNoLocation>claw</labelNoLocation>
<capacities>
<li>Scratch</li>
</capacities>
<power>3.6</power>
<cooldownTime>1.5</cooldownTime>
<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
</li>
<li>
<capacities>
<li>Bite</li>
</capacities>
<power>6</power>
<cooldownTime>2</cooldownTime>
<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
<chanceFactor>0.7</chanceFactor>
</li>
<li>
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>2</power>
<cooldownTime>2</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<chanceFactor>0.2</chanceFactor>
</li>
</tools>
<race>
<body>QuadrupedAnimalWithPaws</body>
<baseBodySize>0.2</baseBodySize>
<baseHungerRate>0.1</baseHungerRate>
<baseHealthScale>0.29</baseHealthScale>
<foodType>OmnivoreRoughAnimal</foodType>
<leatherDef>Leather_Light</leatherDef>
<wildness>0.50</wildness>
<trainability>None</trainability>
<petness>0.15</petness>
<mateMtbHours>8</mateMtbHours>
<gestationPeriodDays>5.661</gestationPeriodDays>
<soundEating>Rodent_Eat</soundEating>
<litterSizeCurve>
<points>
<li>(0.5, 0)</li>
<li>(1, 1)</li>
<li>(2.2, 1)</li>
<li>(2.8, 0)</li>
</points>
</litterSizeCurve>
<lifeExpectancy>8</lifeExpectancy>
<lifeStageAges>
<li>
<def>AnimalBaby</def>
<minAge>0</minAge>
</li>
<li>
<def>AnimalJuvenile</def>
<minAge>0.1</minAge>
</li>
<li>
<def>AnimalAdult</def>
<minAge>0.2222</minAge>
<soundWounded>Pawn_Boomrat_Wounded</soundWounded>
<soundDeath>Pawn_Boomrat_Death</soundDeath>
<soundCall>Pawn_Boomrat_Call</soundCall>
<soundAngry>Pawn_Boomrat_Angry</soundAngry>
</li>
</lifeStageAges>
<soundMeleeHitPawn>Pawn_Melee_SmallScratch_HitPawn</soundMeleeHitPawn>
<soundMeleeHitBuilding>Pawn_Melee_SmallScratch_HitBuilding</soundMeleeHitBuilding>
<soundMeleeMiss>Pawn_Melee_SmallScratch_Miss</soundMeleeMiss>
<headPosPerRotation>
<li>(0.0, 0, 0.2)</li>
<li>(0.33, 0, 0.03)</li>
<li>(0.0, 0, -0.28)</li>
<li>(-0.33, 0, 0.03)</li>
</headPosPerRotation>
</race>
<tradeTags>
<li>AnimalCommon</li>
</tradeTags>
</ThingDef>

<PawnKindDef Abstract="True" ParentName="AnimalKindBase" Name="GuldenRatKindBase">
<combatPower>30</combatPower>
<ecoSystemWeight>0.20</ecoSystemWeight>
</PawnKindDef>


<!-- =============================================================== -->

<ThingDef ParentName="GuldenRatThingBase" Name="GuldenRatThing">
<defName>Gulden_Rat</defName>
<label>gulden rat</label>
<description>A lustrous rodent that traverses through the forest undergrowth, blending in with the fallen golden leaves to avoid predators. Members of high society often seek them out as pets and status symbols due to their glistening fur and elusive nature. Originally created as part of a cosmetic bioengineering project, gulden rats managed to spread across the galaxy via a cycle of being purchased, reproducing, and sold through trade ships. Despite their skittishness, they typically have a gentle temperament, making them ideal companions.</description>
</ThingDef>

<PawnKindDef ParentName="GuldenRatKindBase" Name="GuldenRatKind">
<defName>Gulden_Rat</defName>
<label>gulden rat</label>
<race>Gulden_Rat</race>
<lifeStages>
<li>
<bodyGraphicData>
<texPath>Animal/GuldenRat/GuldenRat</texPath>
<drawSize>1.0</drawSize>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Rat/Dessicated_Rat</texPath>
<drawSize>1.0</drawSize>
</dessicatedBodyGraphicData>
</li>
<li>
<bodyGraphicData>
<texPath>Animal/GuldenRat/GuldenRat</texPath>
<drawSize>1.1</drawSize>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Rat/Dessicated_Rat</texPath>
<drawSize>1.1</drawSize>
</dessicatedBodyGraphicData>
</li>
<li>
<bodyGraphicData>
<texPath>Animal/GuldenRat/GuldenRat</texPath>
<drawSize>1.25</drawSize>
</bodyGraphicData>

<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Rat/Dessicated_Rat</texPath>
<drawSize>1.25</drawSize>
</dessicatedBodyGraphicData>
</li>
</lifeStages>
</PawnKindDef>

</Defs>
< >
Showing 1-3 of 3 comments
Sovereign  [developer] 5 Jul, 2024 @ 10:49am 
what exactly is fixed here that seems to be an issue?
Raizan 8 Jul, 2024 @ 6:13pm 
Your golden rat is replacing the vanilla rat according to all your base. So in first instance I tried to make the gulden rat a proper animal without modifying vanilla assets. There is also a bit more mimicking the rest of your animals to avoid other errors.
Sovereign  [developer] 9 Jul, 2024 @ 3:53am 
Originally posted by Raizan:
Your golden rat is replacing the vanilla rat according to all your base. So in first instance I tried to make the gulden rat a proper animal without modifying vanilla assets. There is also a bit more mimicking the rest of your animals to avoid other errors.
So i forgot to remove the =Name
thanks man
< >
Showing 1-3 of 3 comments
Per page: 1530 50