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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...