What I'm looking to do is to divide up Future Tech into five seperate techs, which would each add one of either:
Happiness
Health
Food
Hammers
Commerce
So, I'm going to have to add 3 new tags to the XML, which means adding them into the SDK, and teaching the AI they exist so it will adequately try to go for them. And making sure they're counted properly in the City screen, so everything totals correctly.
So, a simple text search through the SDK files for "iHealth", then cross-checking for "iHappiness" brought up:
CvCity.cpp
CvCityAI.cpp
CvGameTextMgr.cpp
CvInfos.cpp
CvInfos.h
CvPlayerAI.cpp
which looks right to me (noob that I am ). But, starting with CvCity.cpp, I think I might be ok for just adding the XML tags, but having my Future Food Tech say it adds +1 in the Civilopedia won't do squat if I don't tell the game to count it in when checking how much food a city is garnering each turn. It'll look pretty, but do nothing. Same goes for Hammers & Commerce.
So, I'm asking for help. Is this going to be simple? Better yet, has it already been done (I couldn't find anything...)? Could someone do it for me?
Happiness
Health
Food
Hammers
Commerce
So, I'm going to have to add 3 new tags to the XML, which means adding them into the SDK, and teaching the AI they exist so it will adequately try to go for them. And making sure they're counted properly in the City screen, so everything totals correctly.
So, a simple text search through the SDK files for "iHealth", then cross-checking for "iHappiness" brought up:
CvCity.cpp
CvCityAI.cpp
CvGameTextMgr.cpp
CvInfos.cpp
CvInfos.h
CvPlayerAI.cpp
which looks right to me (noob that I am ). But, starting with CvCity.cpp, I think I might be ok for just adding the XML tags, but having my Future Food Tech say it adds +1 in the Civilopedia won't do squat if I don't tell the game to count it in when checking how much food a city is garnering each turn. It'll look pretty, but do nothing. Same goes for Hammers & Commerce.
So, I'm asking for help. Is this going to be simple? Better yet, has it already been done (I couldn't find anything...)? Could someone do it for me?