Adjacent Improvement System

ThronedEggman

Chieftain
Joined
Apr 18, 2025
Messages
2
Hello!

I've been modmodding Xtended+ on and off for a few years, as I have a lot of my own tweaks I want to add, in particular when it comes to improvements.

Been going rather well, if I do say so myself, but I'm getting totally stumped on one thing; the improvement system used for boosting Farms and Pastures with Groundwater Wells and Cottages with Workshops. At one point it was much more expansive, and I like to reimplement the full scope of it and add on top of it as well, but the changes I make doesn't seem to do anything.

From what I can tell, it's located in CvImprovementSystem.cpp in the Dev Source folder, with the main function used to determine which improvements are affected being calculateExtraYieldfromAdjacentPlot. There's another CvImprovementSystem.cpp in Source, but it seems to be the main file which the Dev Source one modifies. Is there another file I should be looking at as well?
Any help would be appreciated!


As a secondary little ask, if anyone happens to know when and why this was changed in the first place, I'd love to know why, though it's pure curiosity ;)
 
That is the file and the method, correct!
You should compile the dll from Dev Source, as Source folder seems to contain the original code, I guess original Master of Mana latest release.

Source folder, imho, has been kept there as a reference of the original Master of Mana. Can be used to compare changes between vanilla and modded one (I did it on first releases), but as the time pass by there are so many changes that has become unmanageable.
 
Ah, of course, been a while since I had to compile my code, I forgot it's a thing ^^'
Thank you, and thank you for your work on the tweak mod!
 
Back
Top Bottom