AIEND Posted March 4, 2022 Share Posted March 4, 2022 I want to add water, like the power provided by the power plant in Command & Conquer, to limit the size of the city. For example, if I build a well to provide 100 units of water, one military camp will occupy 50 units. If I build two military camps and use up the quota of 100 units, I need to build another water well. If the well is damaged, the total water supply will not be able to cover the consumption. , the efficiency of all buildings that consume water decreases. I don't know where to find the files for population resources, where can I get the relevant code? 1 Link to comment Share on other sites More sharing options...
Stan` Posted March 5, 2022 Share Posted March 5, 2022 @Freagarach Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted March 5, 2022 Share Posted March 5, 2022 @Trinketos didn't you have a similar mod? Link to comment Share on other sites More sharing options...
Freagarach Posted March 6, 2022 Share Posted March 6, 2022 The population "cost" (not really a cost (https://code.wildfiregames.com/D3353)) is in the Cost.js component file. The Bonuses provided by structures are in the PopulationBonus.js component file. I find your idea quite interesting. 1 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now