XnopeCore
A core mod for RimWorld that adds general functionality for my mods, and for any other modders out there who want to use this functionality. These features include:
-
Add custom backstories with Defs
-
Inject custom spawnCategories into existing backstories with Defs
- This means you could create a custom backstory MyBackstory and give it a custom spawnCategory MySpawnCategory, and then inject this new spawn category into the existing backstory 'Con artist' for example, or the existing spawnCategory 'Civil', for example.
-
Changes the way backstories are chosen to make more sense. In vanilla, a pawn's faction's backstoryCategory was the only thing checked for choosing a backstory, and while a PawnKindDef contains a field for backstoryCategory, it is never used in vanilla. This mod prioritises using the PawnKindDef's backstoryCategory over the FactionDef's, which it defaults to if none is specified in the PawnKindDef. This means you can more precisely define what backstoryCategory a kind of pawn in a faction can have, and it cleans up occurences of, say, having a fighter pawn with strange and unbefitting backstory.
-
Adds extended functionality to factions, currently including:
- Roaming factions: they roam about in caravans, but do not have any settlements. Similar to a hidden faction, only you can track and maintain relations with them via the Factions tab or the Comms Console.
- Dynamically-named factions: a faction can be named dynamically based on what its leader's name is. Must have a custom RulePackDef namer that includes the string 'LNAME' to be replaced by the generated leader's name. This currently works, however more extensive work will be done on this feature later.
-
And most importantly, the Defs folder of this mod contains example .txt files that thoroughly outline how to use this mod for creating purposes. Please remember that these .txt files must be renamed to .xml files if you want to edit them directly into a usable Def.
-
Utilities
- I love my utilities, but feel free to copy my pasta. Credit would be a nicety, but not necessary.
- CellsUtil: a bunch of helper functions for dealing with IntVec3 / "cells".
- Will add more generalised functions from my mod Carnivale once I get it to a more stable place.