A Case of Linearly Growing Pimps (Patreon)
Content
I'm currently working on generating the entire population of the town, complete with occupations, which is a tricky bit of code that I haven't yet written, which would have it expand and contract, altering occupations as the population changes.
This is necessary because large cities can afford to have more specialised occupations (why would a hamlet need a bookbinder, when all fifty six of them are illiterate?), so I need to ensure that the occupations reflect the size of the town. Currently, I've just got the occupations as an array of unique values which is decidedly *not* how they're meant to work.
So, as part of that, I had to create an indexed array of everyone, so I'd be able to reference NPCs easily. To test that it was working, I chucked the array into a for loop, and had it print out the profile of the character, plus their occupation, so I could test that later down the track.
Lovely and simple.
Worked first try! Let's test out the linking functionality!
Damn, Leia. You repressing some seeeerious issues. Also, remind me to create an exclusion for prostitutes and any background to do with being holy... So anyway, I go back out, and what do I find?
There's two new kids on the block. Huh, that's strange, considering that I haven't added two extra pimps (to my knowledge). I go back in to check Leia's profile, and then return... and there's two more. I do it again, and again, and now here we are...
Infinite pimps.