// Management · RimWorld Mod

Shadow Monarch - Regen Fix

Shadow Monarch - Regen Fix mod preview for RimWorld

Shadow Monarch's shadows heal every wound to zero once per second, which makes them effectively unkillable and makes the mod's own regeneration sliders do nothing.

Shadow Monarch's shadows heal every wound to zero once per second, which makes them effectively unkillable and makes the mod's own regeneration sliders do nothing.

THE BUG

The cause is in HediffComp_ShadowRegeneration.StripEnvironmentHediffs. Shadow Monarch 1.7.5 added disease immunity for shadows by removing any hediff whose def is marked tendable. But "tendable" does not mean "disease" and vanilla's InjuryBase sets tendable=true, so every Cut, Gunshot, Stab, Burn, Bruise and Bite inherits it. The disease sweep therefore deletes the pawn's entire injury list on every regeneration pulse, which overrides the deliberate "heal only the single worst wound by 5" rate immediately above it.

This prefixes that method and re-runs it with injuries excluded. Disease immunity is unchanged: every vanilla infection and disease (WoundInfection, Plague, Malaria, Flu, GutWorms, MuscleParasites, mechanites, SleepingSickness) is a HediffWithComps under InfectionBase with no injuryProps, so all of them are still stripped. The environment-keyword sweep (anoxia, vacuum, hypothermia, heatstroke, frostbite and friends) is also untouched.

Net effect: shadows heal 5 HP on their worst wound per pulse, exactly as Shadow Monarch's own changelog describes, and the regen sliders in its settings work again. Missing-limb regrowth is left alone; that is separate, deliberate behaviour in the same comp.

BLOOD LOSS (optional, in this mod's settings)

With wounds no longer being deleted, blood loss becomes a shadow's main cause of death. Shadows are animated corpses, so you may not want them bleeding out at all. Four options, applying to raised shadows only:

- Normal: vanilla blood loss, no interference.
- Cannot be fatal (default): blood loss is clamped below the lethal threshold, at 0.55 by default. A bled shadow is badly impaired but recovers as its wounds close. Values at or above 0.60 reach the "extreme" stage, which caps consciousness at 0.1 and leaves the shadow downed for in-game hours rather than killing it.
- Removed entirely: blood loss is stripped every pulse. Be aware that pain also clears at the regeneration rate, so downed shadows will stand back up mid-battle within seconds, repeatedly; expect only brain or heart destruction to reliably put one down.
- Drains quickly: blood loss is drained by a tunable amount each pulse. Ordinary bleeding is shrugged off, but many heavy wounds at once can still out-bleed the drain and kill.

Settings apply on the next regeneration pulse, so they can be changed mid-game.

COMPATIBILITY

Only touches Shadow Monarch's own method. If that mod is absent, updated or refactored so the method is gone, this logs one warning at startup and does nothing else. Safe to add or remove mid-save.

NOTE

Claude Code was used to diagnose the root cause and assist in implementing this fix. This mod has been tested and works fine in my own saves. If you find any bug, report it with the attached error the log shows so I can look into it.