Source code for the mod. Includes more recent code that has some structural improvements and newer features (like promoting troops to companions) but is bugged to all hell and I couldn't get in a proper working state and older code that's relatively stable, but rather clunky.