RimWorld

RimWorld

Not enough ratings
Buff From Pawn Types
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2
File Size
Posted
Updated
426.803 KB
9 Mar, 2021 @ 10:47pm
8 Apr, 2021 @ 1:03am
3 Change Notes ( view )

Subscribe to download
Buff From Pawn Types

Description
Contains code that allows you to give various buffs from having different pawn types.

This mod itself doesn't give pawns any buffs.



Example Def

<BFPTN.BFPTNDef>
<defName>ThrumboBuff_A0</defName>
<requiredPawnDefs>
<li>Thrumbo</li>
</requiredPawnDefs>
<requiredPawnNumber>
<li>1</li>
</requiredPawnNumber>
<priority>0</priority> picks the highest priority within the same group so that it doesnt overlap
<applyToAllInstead>true</applyToAllInstead> instead of targetPawnDefs using this makes it apply to all pawns
<hediffToApply>BuffHediff_A</hediffToApply>
</BFPTN.BFPTNDef>

<BFPTN.BFPTNDef>
<defName>ThrumboBuff_A1</defName>
<requiredPawnDefs>
<li>Thrumbo</li>
</requiredPawnDefs>
<requiredPawnNumber>
<li>3</li>
</requiredPawnNumber>
<prerequisiteDefs><li>ThrumboBuff_A0</li></prerequisiteDefs> insert only 1 despite being a list, used to track which buffs are connected
<priority>1</priority>
<applyToAllInstead>true</applyToAllInstead>
<hediffToApply>BuffHediff_B</hediffToApply>
</BFPTN.BFPTNDef>


<HediffDef ParentName="DiseaseBase">
<defName>BuffHediff_A</defName>
<label>hediff buff test A</label>
<isBad>false</isBad>
<initialSeverity>1</initialSeverity>
<maxSeverity>1000</maxSeverity>
<description>example desc</description>
<comps>
<li Class="HediffCompProperties_Disappears"> <!--this is needed, disappearsAfterTicks doesnt matter as it is handled in the code-->
<disappearsAfterTicks>1234~5678</disappearsAfterTicks>
<showRemainingTime>true</showRemainingTime>
</li>
</comps>
<stages>
<li>
<painFactor>0.1</painFactor>
</li>
</stages>
</HediffDef>
2 Comments
qux 11 May, 2021 @ 3:31pm 
Hi, is it possible to use your mod for change the carrying capacity of pawns from is body type ? (Example hulk type +10 and thin type -10)
민주주의 시진핑 10 Mar, 2021 @ 3:37pm 
아 직접 설정해야 되네?