A common framework to change body part max HP.
- Go back to https://github.com/Vectorial1024/EliteBionicsFramework
- Notice the "Clone or Download" button on the top right hand corner (under the "1 Contributor" area). Click on it and click "Download as ZIP"
- The ZIP should conain 1 folder. Unpack the ZIP, and place the folder in the /Mods directory of your RimWorld installation.
Please refer to individual md files under /Docs
for detailed information of each available component.
Currently, these components are available:
- HediffCompProperties_MaxHPAdjust
- HediffCompProperties_VerbPowerAdjust
In RimWorld, Hediffs may optionally carry HediffCompProperties to add flavour to the Hediff. Examples of HediffCompProperties already implemented in RimWorld are HediffCompProperties_Immunizable
(used by most, if not all, diseases and infections), HediffCompProperties_VerbGiver
(used by some bionics and other mods to e.g. increase body part melee damage; there may be other uses) and HediffCompProperties_Disappears
(used by Fibrous/Sensory Mechanite Hediffs)
HediffCompProperties
are representatives of HediffComps
. HediffCompProperties
lets us define parameters for HediffComps
to use, so HediffComps
can show our intended effect.
To add HediffCompProperties
to your Hediff
, open the XML file that contains your Hediff
, and add an li
entry to the comps
node. If the comps
node does not exist, add it first.
After adding your HediffCompProperties
, your Hediff
XML Def should look something like this:
<HediffDef>
<!-- Omitted code -->
<comps>
<!-- Adding HediffCompProperties_VerbGiver -->
<li Class="HediffCompProperties_VerbGiver">
<tools>
<li>
<label>fist</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>12</power>
<cooldownTime>2</cooldownTime>
</li>
</tools>
</li>
<!-- Add complete -->
</comps>
<!-- Omitted code -->
</HediffDef>
If you want to add in more HediffCompProperties
, just add in additional li
nodes like this:
<HediffDef>
<!-- Omitted code -->
<comps>
<li Class="HediffCompProperties_VerbGiver">
<tools>
<li>
<label>fist</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>12</power>
<cooldownTime>2</cooldownTime>
</li>
</tools>
</li>
<!-- Adding HediffCompProperties_MaxHPAdjust -->
<li Class="EBF.Hediffs.HediffCompProperties_MaxHPAdjust">
<linearAdjustment>40</linearAdjustment>
</li>
<!-- Add complete -->
</comps>
<!-- Omitted code -->
</HediffDef>