-
Notifications
You must be signed in to change notification settings - Fork 37
Animal Behaviours Damage Workers
juanosarg edited this page Aug 22, 2021
·
7 revisions
The AnimalBehaviours module of Vanilla Expanded Framework adds three types of Damage Workers that can be used:
- DamageWorker_ExtraInfecter: A damage class that causes additional infections when causing damage. The percentage chance is passed by adding a comp class, CompInfecter, to the animal using this damage class. So to use this Damage Worker you'll need to add both: the Comp Class is added to the animal, while the Damage Worker is added to the DamageDef you want to modify.
- DamageWorker_Berserk: A damage class that makes affected pawns go Berserk.
- Extra damage: We have included four Damage Workers that cause extra damage
- DamageWorker_ExtraDamageInsectoids: Causes extra Cut damage to any pawn with FleshTypeDefOf.Insectoid
- DamageWorker_ExtraDamageMechanoids: Causes extra EMP damage to any pawn with FleshTypeDefOf.Mechanoid
- DamageWorker_ExtraDamagePirates: Causes extra Scratch damage to any pawn belonging to the Pirate base game faction
- DamageWorker_ExtraDamageAnimals: Causes extra Cut damage to animals
First of all, remember that you'll need to create a new ToolCapacityDef as well as Maneuver to make the animal use the attack.
Damage Workers must be added as a custom class of the desired DamageDef. For example, the Xiezhi in Magical menagerie uses this DamageDef to cause extra damage to Pirates:
<DamageDef>
<defName>MM_ExtraDamageToPiratesHorn</defName>
<label>horn of justice</label>
<workerClass>AnimalBehaviours.DamageWorker_ExtraDamagePirates</workerClass>
<externalViolence>true</externalViolence>
<deathMessage>{0} has been stabbed to death.</deathMessage>
<hediff>Stab</hediff>
<hediffSolid>Crack</hediffSolid>
<impactSoundType>Slice</impactSoundType>
<armorCategory>Sharp</armorCategory>
<stabChanceOfForcedInternal>0.6</stabChanceOfForcedInternal>
<overkillPctToDestroyPart>0.4~1.0</overkillPctToDestroyPart>
</DamageDef>
- QuestNode_GetFaction
- Expandable projectiles
- Faction Def Extension
- Toggable patches
- Recipes Inheritance
- Adding new backstories
- Spawning things on new generated maps
- ThoughtExtensions
- 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
- Update to KCSG 2.0
- 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