You can only have one building named 'temple' in the engine.
However you can have multiple buildings which are called 'temple' in game description, but in engine they must all be called something else - 'houseofworship', whatever you like. Just not 'temple_'
Other hardcoded buildings include everything with hinterland_, ports, and core buildings - if you want to have a couple of them, you must use different names (and of course they won't behave in the same way as the hardcoded ones, this is why they're hardcoded :)
Bookmarks