Jump to content

Changing buildings details


false_god123
 Share

Recommended Posts

The costs for the civic centers are defined in the parent template from which all CC's inherit their data. Since you wanted to modify only Gaul's Civic center, you need to overwrite the costs inherited from the parent template. To do this add the Cost element below to gaul_civic_centre.xml. Just replace the amounts to what you had in mind. Since the population bonus and build time wont be changed,  I have avoided those 2 lines. If you do want to change them,  just add the 2 lines above <Resources> found in template_structure_civic_civil_center.xml

  <Cost>
    <Resources>
      <food>0</food>
      <wood>500</wood>
      <stone>500</stone>
      <metal>500</metal>
    </Resources>
  </Cost>

 

Link to comment
Share on other sites

  • 2 weeks later...
On 1/30/2018 at 11:06 AM, false_god123 said:

where do you find this information? I would have thought opening the default civic centre would have all the lines of code but it doesn't have anything to do with resources

As @(-_-) said, templates inherit properties from their parents, in particular structures/gaul_civic_centre is inherited from template_structure_civic_civil_centre (see the 'parent' attribute of 'Entity' element). skirmish/structures/default_civil_centre is a skirmish replacement entity and it inherits most properties from template_structure_civic_civil_centre too.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...