No Random Relations

If you liked this item, please rate it up on Steam Workshop page.

Author: Bar0th

Last revision: 20 Oct, 2020 at 13:37 UTC (4)

File size: 41.98 KB

On Steam Workshop

Description:
Description

This mod disables the creation of random relations during the game. No more blood relatives, ex-wives, lovers, etc showing up that should have been left behind. Relationships formed by your colonists during the course of the game, "social" relations, and children (if using a mod which enables such a thing) should have relations generated normally.

Only newly created pawns will be affected. Existing pawns (including ones in the world) will not have their current relationships removed. If you wish to clear those as well, check out RuntimeGC or other mods which can clean up world pawns.

Mod compatibility

It should be compatible with most mods. Other mods which also alter random relations are likely to have issues. If you find an incompatibility outside of those, please let me know and I can look into it.

Advanced

1.0: Two Harmony patches are applied:

  • Prefix: Verse.PawnGenerationRequest..ctor() – canGeneratePawnRelations is set to false
  • Prefix: RimWorld.PawnRelationUtility.TryAppendRelationsWithColonistsInfo() – returns false

1.1 – 1.2: One Harmony patch is applied:

  • Prefix: Verse.PawnGenerationRequest.CanGeneratePawnRelations – returns false

Requested by Darkagma on the RimWorld Discord Server[discord.gg].

Download
Required items:

Click the title to search on this site.


HarmonySteam Workshop
HugsLibSteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.