Combo Reactions - Grim-/MagicAndMyths GitHub Wiki
Combo Reaction System
Overview
The Combo Reaction System is a dynamic elemental interaction mechanic that creates strategic depth in combat. This system allows for certain hediffs (status effects) to react when a pawn takes specific types of damage, creating powerful combo effects.
How It Works
When a pawn with a reactive hediff takes damage of a compatible type, special effects trigger automatically. These reactions can:
- Deal additional damage
- Apply status effects
- Create area-of-effect (AoE) impacts
- Stun or immobilize targets
- And more
Each combo reaction is defined by a HediffCompProperties_ComboReactor
component that specifies which damage types trigger the reaction and what effects occur.
Base Elemental Types
The mod includes several elemental damage types and corresponding hediffs that participate in the combo system:
Water (Wet)
Hediff: MagicAndMyths_Wet
- Reduces manipulation, move speed, and immunity gain
- Increases comfortable maximum temperature
- Makes the pawn non-flammable
- Duration: 6,000 ticks (100 seconds)
Combo Reactions:
- When hit with Lightning damage:
- Stuns the pawn for 500 ticks
- Deals 25-45 lightning damage in a 2-tile radius
- Can affect friendly, hostile, and neutral pawns
Lightning (Shocked)
Hediff: MagicAndMyths_Shocked
- Increases pain by 60%
- Reduces movement capacity by 40%
- Duration: 6,000 ticks (100 seconds)
Combo Reactions:
- No direct combo reactions defined, but synergizes with Wet
Wind (Laceration)
Hediff: MagicAndMyths_Laceration
- Causes bleeding (0.12 bleed rate)
- Increases pain
- Can form permanent scars
- Duration: 6,000 ticks (100 seconds)
Acid
Hediff: Acid Burn
- Deals damage over time
- Progressively reduces armor as it damages the pawn
Frost
Hediff: Chill Blaines
- Reduces manipulation, slightly reduces armour
Special Reactive Hediffs
Beyond the basic elements, the mod includes special curse hediffs with unique reactive properties:
Curse of Needles
When a pawn affected by this curse takes physical damage, a portion of that damage is reflected to all surrounding targets. This creates dangerous situations where attacking a cursed pawn can harm allies nearby.
Using Combos Effectively
Players can leverage this system by:
- Equipping weapons with complementary elemental effects
- Coordinating attacks between colonists with different damage types
- Using the environment strategically
- Exploiting known enemy weaknesses
- Creating specialized "combo caster" builds
This system will continue to expand with updates to include more elements and combination effects.