Made some big thesis progress this week so decided to give myself two days off. Half of this time was spent making something that will have to remain secret for now (but holy crap guys, it’s awesome), and the other half was spent working on religious buildings. I’ve been putting these off for a little while because the method I wanted to use to generate them was a little bit daunting, but I decided the time has come.
So, in keeping with my objective to give everything in the game a totally unique generation algorithm and therefore make my workload infinitely greater (and, y’know, make the game look better), I decided to try something new with religious buildings. They are created in a modular manner. Each religion chooses a unique layout for its religious buildings (and also a unique name, so you’ll get churches, stupas, pagodas, monasteries, convents, etc) and this consists of a central component and a number of peripheral parts to the building. The central part of the religious building has a number of points where extra parts can be “attached”. There’s somewhere in the range of fifty cores to these buildings (each of which will have unique generated interiors in the next version), and around fifty attachments. Some attachments can only go on some cores, so there’s a little over a thousand possible religious buildings. Each religion will always have the same type so the player may come to recognize them as the game goes on. Whereas most cities have their religious buildings scattered around, some cities have religious districts like this one:
So, in this case we have nine religious buildings; this is from a nation with a lot of religions. Only nations with the “Religious Freedom” policy will have such a district, so it’s pretty rare. Other nations will place their religious buildings in other districts – a “Zealotry” nation will have a religious building in every district and have no room for other religious buildings (much like those with “Theocracy” leadership), whilst some might have religious buildings in city centres, or in a small number of districts, or throughout the countryside in towns. In a “Collective Faith” or “Organized Religion” civ, for instance, you’ll have religious buildings around most districts, though OR will be a little more centralized/organized than CF. Some nations will therefore have many religions represented, some will only have few, and in 0.7 you’ll be able to walk around inside these modular buildings and steal the holy cheeses, or whatever one may find inside.
The last thing to do on religions for this release is to handle the spread of religions so we know which are represented in which cities, and therefore which religious buildings should appear where. I’ll probably implement a simple version of this for this release, and then in later versions possibly allow you to the spread of each religion on the world map, or at least give the player more information about it. I also fixed a bunch of bugs to do with roads I hadn’t really noticed before, stacked up a bunch of other things to fix closer to release, and started to seriously think about how docks were going to work before realizing I needed to do a lot more research first on how the hell 17th-century ships actually docked.