• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Question

There must be a way. Though I checked crew.c, tavern.c the colonies listings and I can't find it. You rephrase the title of the topic, if you can, so others know what it is about and you may get more help.
 
Okay, if you just want to increase the amount that's added as it is, using the standard frequency, open Program\Scripts\ColonyUpgrades.c. Scroll down to line 592 or search for :

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
        if(colonies.id == "IslaMona")
        {
            iPopGrow = rand(15);
        }
        iPopGrow = iPopGrow + iWheatField + iFishingPier + iMill;
        
        colonies.population = sti(colonies.population) + iPopGrow;

        //colonies.crew = sti(colonies.crew) + makeint(iPopGrow/10.0);
        colonies.crew.sailors = sti(colonies.crew.sailors) + makeint(iPopGrow/3);
        colonies.crew.soldiers = sti(colonies.crew.soldiers) + makeint(iPopGrow/3);
        colonies.crew.musketeers = sti(colonies.crew.musketeers) + makeint(iPopGrow/10);
        colonies.crew.cannoners = sti(colonies.crew.cannoners) + makeint(iPopGrow/5);
<!--c2--></div><!--ec2-->

Add the line surrounded by my nick as follows :

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
        if(colonies.id == "IslaMona")
        {
            iPopGrow = rand(15);
        }
        iPopGrow = iPopGrow + iWheatField + iFishingPier + iMill;

        // Stone-D :: Population Booster
        iPopGrow = iPopGrow + rand(100);
        // Stone-D :: Population Booster

        colonies.population = sti(colonies.population) + iPopGrow;

        //colonies.crew = sti(colonies.crew) + makeint(iPopGrow/10.0);
        colonies.crew.sailors = sti(colonies.crew.sailors) + makeint(iPopGrow/3);
        colonies.crew.soldiers = sti(colonies.crew.soldiers) + makeint(iPopGrow/3);
        colonies.crew.musketeers = sti(colonies.crew.musketeers) + makeint(iPopGrow/10);
        colonies.crew.cannoners = sti(colonies.crew.cannoners) + makeint(iPopGrow/5);
<!--c2--></div><!--ec2-->

To change the frequency of updates, open Program\Scripts\time_events.c. Search for "void RechargeColonyPopulationUp()" and edit that function as you require.
 
Back
Top