I am looking to develop a mod that would allow Twitch streamers to automatically have colonists named after their watchers, via Twitch's API.
I am new to Rimworld modding, although I'm familiar with Harmony and ILSpy. So I've been poking around at the code and I've found a few methods:
Rimworld.PawnNameDatabaseShuffled.GeneratePawnName_Shuffled
Rimworld.PawnBioAndNameGenerator.GenerateName
I've tried postfix on both of them. To start, I just was going to override the name to be "Scen" plus a random integer.
When I go to create a new colony, it works! Except for just a few pawns to select from. 6/8 and 7/8 colonists were "Scen${int}".
I'm trying to figure out why a few colonists are named differently. Is there someone who is more familiar with the code that can clue me in?
Thanks!