You'll be happy to hear that I have working code in BUG's SVN so that you don't need CvModName.py anymore...
Cool!! Maybe I'll wait for 3.5.2 then, before upgrading... Hmm, maybe not, cause then I'll wait for whatever's neat from 3.5.3, etc...
I've downloaded your mod and will take a gander tomorrow possibly...
Don't rush on my account. I'll be out of commision this week I expect anyways (tooth coming out...
), so I don't think my brain will be working well enough to follow up on anything anyways.
Seriously, it's all good.
Sorry
rolleyes
to be hyper-sensitive... I've crunched on toes before without any clue what I'd done, so sometimes I'm too vigilant with the apologies... We'll just both pretend I never said anything!
I'm gonna start trying to take a stab at changing the Shrines to give Commerce
And one of these days, I'll learn that nothing is ever as easy as I think it will be!
I went ahead and tried to add a Yield array to ReligionInfos.xml, and I got everything in fine, until I got to CvCity.cpp, CvCityAI.cpp, & CvPlayerAI.cpp. Now, forgetting the AI's for the nonce (I think I might
actually be able to figure them out for myself, but am going to try later) CvCity left me stumped with how to get it to count Yields from Shrines. Here's what I added, under
void CvCity::setBuildingYieldChange
Code:
if (GC.getBuildingInfo(eBuilding).getGlobalReligionYield() != NO_RELIGION)
{
iChange += (GC.getReligionInfo((ReligionTypes)(GC.getBuildingInfo(eBuilding).getGlobalReligionYield())).getGlobalReligionYield([COLOR="DarkOrange"]eYield[/COLOR]) * GC.getGameINLINE().countReligionLevels((ReligionTypes)(GC.getBuildingInfo(eBuilding).getGlobalReligionYield()))) * getNumActiveBuilding(eBuilding);
}
The above code is actually copied almost word-for-word from
int CvCity::getBuildingCommerceByBuilding, but, needless to say, it worked even worse than a lead balloon's supposed to (ah, MythBusters...). So, I'll try to pick at that tonight, hopefully tomorrow, maybe go over RawYields again some too...
Yeesh, I just keep digging deeper, don't I? Is there a bottom to this thing...?