Hediffs - KonradHeinser/EBSGFramework GitHub Wiki
Most of these hediff comps were made to be attached to genes I've made sometimes with the HediffAdder class, and sometimes with an add hediff ability, but they can be used for any hediff with comps.
- Aging Hediff : Changes the pawn's age over time for however long the hediff is attached
- Alter Xenotype (Hediff) : Override or merge the pawn's xenotype with another
- Attach Mote : Attaches a mote to a pawn
- Create Items (Hediff) : Creates new items at the interval when severity conditions are met, or on removal of the hediff and/or death of the pawn
- Create Other Hediffs : Adds and progresses new hediffs on the pawn when thresholds are passed
- Damage on Removal : Hediff comp that deals damage to the pawn when it's removed
- Damage Over Time : Deals damage to the pawn for the duration of the hediff with various options for what to hit, and how to hit it
- Destroy on Death : Destroys the body on death, with an optional thing replacer and added death sound. Intended more as a catch for having nothing else that exists that fits the desired purpose. If you have a usable alternative, stick with that
- Display Severity : Display the severity directly under the description with some prepend and/or append text to make it easier to display certain bits of information (i.e. charges left, % progress, etc)
- Gene Randomizer : Randomly picks a set of genes that are specified in the hediffComp
- Give Abilities at Severities : Gives abilities based on hediff severity
- Give Hediffs to Non-Allies : Version of give hediffs in an area around the pawn to only the pawns in a hostile faction
- Give Other Hediff Periodically : Regularly gives, or attempts to give, another hediff on a set interval
- Hediff on Kill : Creates another hediff whenever the pawn kills something. Has customization options for what counts as something to kill for this comp
- Hediffs on Removal : Creates other hediffs when the attached hediff is removed
- Hediff While Moving : Throws hediffs on the pawn based on whether they are moving or not. Has separate lists for moving and not moving
- Hediffs While in Severity Ranges : Add other hediffs to the pawn while the hediff is at certain severity levels. Unlike Create Other Hediffs, these hediffs are deleted the moment the comp's hediff leave the severity range
- Hemogen on Kill : While severity is at specified levels, gain hemogen every time the pawn kills something within range
- Hemogen Regeneration : Offsets hemogen over time
- Make Hediff Invisible at Stage
- Modular Hediffs : Hediff stuff that allows you to make hediffs that can be installed and uninstalled with items
- Multiple Lives : Hediff comp that allows you to create a reviving pawn with options for how many lives they have, how the pawn regains a lost life, if applicable, and how long it takes for them to get back up
- Remove at Severities : Hediff comp that removes the hediff when the severity is over a specified value or within the specified range(s)
- Remove/Damage Parts : Removes or damages specific parts
- Severity Change per Attack : Change the hediff's severity every time the pawn attacks based on the criteria set
- Severity Per Day by Genes : Increases the hediff's severity based on how various genetic requirements
- Severity Change When Hit : Alters severity when the pawn is hit assuming conditions are met
- Shield Hediff : Variant of the vanilla shield comp that is attached to a hediff instead of equipment
- Skill Change Hediffs : Change the pawn's skills for the duration of the hediff similar to how Skill Changing Genes changes skills
- Spawn Humanlike : Hediff comp that spawns humanlikes at certain intervals, on removal, and/or on death. Includes option for starting development stage, and min/max severity
- Spawn Pawn Kind on Removal : Hediff comp that spawns pawns when it's removed
- Temporary Genes : Adds genes temporarily based on the severity. Multiple gene sets can be made to cause the hediff to give genes based on various situations
- Terrain Cost Override : Set how much a specific terrain type costs to a pawn, or set a universal one that applies to all terrains not included. Only the first applicable hediff applies to the pawn, but specific terrain overrides can be locked behind things like hediffs
- Tiered Regeneration : Gives injury repair/part regrowth based on hediff severity
- Various Explosion Hediff Comps : Create hediffs that cause explosions when the pawn dies, is damaged, or damages something. All types use the same options, so they are all on the same page
Severity Setters
-
Severity Setters : All of these hediff comps set the hediff severity statically, which makes them not really work with each other, or any other hediff comp that sets or changes severity:
- Faction Bond : Sets the severity to be equal to the number of people in the faction on the current map that have the hediff
- Severity by Age : Sets the hediff's severity based on how old the pawn is. Includes some normalization options to handle some things having very different lifespans
- Severity by Colony Genes : Sets the hediff's severity based on how many allies on the map/in the caravan meet the genetic requirements
- Severity by Genes : Hediff comp that sets the hediff's severity based on how various genetic requirements
- Severity by Light Level : Use a light level curve to set the severity of the hediff
- Severity by Mental State : Hediff comp that sets the hediff's severity based on whether or not the pawn is drafted, undrafted, or in specific mental states
- Severity by Nearby Pawns : Sets the severity based on the number of viable nearby pawns
- Severity by Other Hediff Severities : Sets the severity based on the severity of other hediffs it's told to check
- Severity by Time of Day : Use a curve to assign severity based on progress through day