This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Initial Hediff
juanosarg edited this page Apr 28, 2021
·
3 revisions
CompInitialHediff is a comp class that makes an animal always spawn with a given health condition (hediff). This is only checked once at spawn.
//A comp class that makes animals always spawn with an initial Hediff
public string hediffname = "";
public float hediffseverity = 0f;
//This can be set to apply the hediff to a given body part
public bool applyToAGivenBodypart = false;
public BodyPartDef part = null;
//Possibility to add random hediffs
public bool addRandomHediffs = false;
public int numberOfHediffs = 1;
It is a comp class, so you just add it in XML in the <comps>
tag. For example, this allows Hym in RimWorld - Witcher Monster Hunt to have a hediff reducing their pain sensitivity to 0
<comps>
<li Class="AnimalBehaviours.CompProperties_InitialHediff">
<hediffname>WMH_NoPain</hediffname>
<hediffseverity>1</hediffseverity>
</li>
</comps>
- QuestNode_GetFaction
- Expandable projectiles
- Faction Def Extension
- Toggable patches
- Recipes Inheritance
- Adding new backstories
- Spawning things on new generated maps
- CompApparelHediffs
- CompShieldBubble
- CompHediffGiver
- CompLeavesSpawner & CompAutumnLeavesSpawner
- CompProperties_HomingProjectile
- ThoughtExtensions
- ExcludeFromQuestsExtension
- WeatherLetterExtensions
- WeatherOverlayExtension
- WeatherEffectsExtension
- ThingDefExtension
- Stuff commonality extension
- Biome extension
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions
- Animal Behaviours Basics
-
Animal Behaviours Comp Classes
- Acid Attacks and Acid Immunity
- Animal Resources
- Animal Resources On Caravan
- Apply Hediff When Bound
- Asexual Reproduction
- Auto Nutrition
- Blink
- Build Periodically
- Cause Incident
- Change Def if Not Unique
- Change Weather
- Corpse Decayer
- Destroy This Item
- Die After Period
- Die And Change Into Another Def
- Dig Periodically
- Dig When Hungry
- Disease Event Immunity
- Disease Immunity
- Diseases After Period
- Doesn't flee
- Draftability
- Drop on Death
- Eat Weird Food
- Electrified
- Enrage Other Pawns
- Exploding Hatcher
- Extreme Xenophobia
- Fertilizer
- Filth Producer
- Fixed Gender
- Floating
- Gas Producer
- Give Thoughts On Caravan
- Graphic by Style
- Graphic by Terrain
- Hediff Effecter
- Hediff When Fleeing
- Highly Flammable
- Infecter
- Initial Ability
- Initial Hediff
- Initial Mental State
- Last Stand
- Light Sustenance
- Metamorphosis
- Mind Effecter
- Nearby Effecter
- No Taming Decay
- Passive Regenerator
- Pawn Overlay
- Produces no filth
- Refueling
- Regeneration
- State After Health Loss
- Summon On Spawn
- Swallow Whole
- Thought Effecter
- Untameable
- Animal Behaviours Hediff Comp Classes
- Animal Behaviours Damage Workers
- Animal Behaviours Def Extensions
- Animal Behaviours Extra Defs
- Animal Behaviours Misc