-
Notifications
You must be signed in to change notification settings - Fork 3
Hediffs with Prerequisites
SmArtKar edited this page Aug 6, 2023
·
2 revisions
HediffCompProperties_PrerequisiteHediff can be used to make hediffs that require a certain other hediff to be implanted or to work.
Similarly to disableable hediffs, replacementDef must contain HediffCompProperties_HediffRestorer comp that acts as a temporary holder.
public class HediffCompProperties_PrerequisiteHediff : HediffCompProperties
{
public List<HediffDef> prerequisites;
// List of genes that the pawn should have for the item to be equipped
public List<GeneDef> genePrerequisites;
// If hediff can be implanted without prerequisites
public bool applyWithoutPrerequisites = false;
// Wherever prerequisite hediffs must be located on the same bodypart
public bool samePartPrerequisites = false;
// If hediff should be disabled if one or multiple prerequisites are missing
public bool disableIfMissing = true;
//Def of a hediff that will replace this hediff upon being disabled
public HediffDef replacementDef;
}- Stats
- Gene Templates
- Pawn Group Utility
- Under Group Combat Pressure Think Node
- Min Prey Body Size
- Modular Things
- Gene Locked Recipes and Buildings
- Additional Gene Drops
- Angle Based Shotguns
- Following ("Running") Beams
- Pawn Turret Extensions
- Damage Modification
- Advanced Tools
- Shockwave Attacks
- Miniguns
- Elite Shot
- AOE Hediff Explosion Projectiles
- Frag Grenades
- Cooldown Graphics
- Scatter Things Ability
- Abilities on Equipment
- Burst Projectile Abilities
- Reloadable Abilities
- Shockwave Ability
- Projectile Comps
- Projectile Impact Effects
- Projectile Trails
- Bouncy Projectiles
- Spawner Projectiles
- Roof Collapse Projectiles
- Scattershot Projectiles
- Custom Body Graphic For Apparel
- Multi Layered Apparel Graphics
- Advanced Equipment Shields
- Equipment with Prerequisites
- Advanced Armor
- Gene-based Apparel Textures
- Gene Locked Equipment
- Additional Apparel Graphics Comps
- Hediff Giver Extension
- Bomb Hediff Comp
- Remove On Severity Comp
- Renderable Hediffs
- Shield Hediffs
- Armored Hediffs
- Disableable Hediffs
- Modular Hediffs
- Hediffs with Prerequisites
- Singular Hediff Abilities
- Hediff On Damage
- Additional Hediff Graphics Comps
- Caching
- IArmored
- IDamageResponse
- IRenderable
- IStageOverride
- IStatModifier
- IProjectile
- IPreventEquip
- IHediffGraphicGiver and IEquippableGraphicGiver
- IDamageModifier
- IColorSelector
- IBodyModifier