// Management · RimWorld Mod

Custom Infestations (Continued)

Custom Infestations (Continued) mod preview for RimWorld

An unofficial 1.6 update of Custom Infestations by whitespacekilla. The original seems to not be maintained anymore, so this will serve as a continuation. If the original is ever updated, this one will be retired and taken down. Original: - MIT licensed. Steam: What this mod does

An unofficial 1.6 update of Custom Infestations by whitespacekilla. The original seems to not be maintained anymore, so this will serve as a continuation. If the original is ever updated, this one will be retired and taken down.

Original: https://github.com/marr75/CustomInfestations - MIT licensed.
Steam: https://steamcommunity.com/sharedfiles/filedetails/?id=2923222769

What this mod does


Replaces RimWorld's infestation site scoring with the same formula, but with every hard-coded constant exposed as a setting.

Available Options


- Forbid infestations on tiles containing buildings.
- Forbid infestations on any terrain tagged "NoInfestation", with toggles for the hardy vanilla floor types. Modded flooring is easy to patch.
- Customize the maximum distance from a colony building.
- Customize the smallest enclosed area considered.
- Customize the minimum infestation score considered.
- Customize the minimum "mountainousness" required.
- Customize the light level at which infestations become less likely, and how strong that penalty is.
- Customize the temperature range in which infestations are possible, and the band in which they are unpenalized.
- Customize the temperature falloff curve.

All settings except the flooring toggles apply live, so you can experiment without restarting.

Defaults match vanilla


Every default is the literal RimWorld 1.6 value, checked against Assembly-CSharp. At default settings, scoring is identical to vanilla, so this is safe to install without changing your game's difficulty.

What changed in this update


- Fixed three hard breakages introduced by RimWorld 1.5/1.6: the colony-building distance grid moved to CellFinderUtility, and GlowGrid.GameGlowAt was renamed to GroundGlowAt.
- Realigned defaults to 1.6 vanilla, which changed since 1.4 (minimum score 5.36 to 7.5, added a mountainousness floor and a temperature curve exponent).
- Fixed an inverted upper-temperature falloff that made the hottest cells the most attractive.
- Fixed an out-of-bounds view rect and a divide-by-zero in the debug overlay.
- If a future RimWorld update moves something again, the mod now reports exactly what is missing and applies no patches at all, instead of applying some and skipping others.

Save game safety


Adds no defs or saved components of its own, so it is safe to add to and remove from an ongoing save.

Compatibility


Uses Harmony to replace InfestationCellFinder.GetScoreAt and InfestationCellFinder.DebugDraw, and to postfix CompSpawnerHives.CanSpawnHiveAt. It will conflict with other mods that replace those same methods.