Page MenuHomeWildfire Games

remove some unnecessary lines from a few civic templates
ClosedPublic

Authored by Nescio on Jun 30 2020, 9:56 PM.

Details

Reviewers
Freagarach
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP23957: Remove some unnecessary lines from a few civic structure templates.
Summary

This patch removes some unnecessary lines from a few civic structure templates.
See also D2744, D2855.

Test Plan

Check for mistakes.

Event Timeline

Nescio created this revision.Jun 30 2020, 9:56 PM
Owners added a subscriber: Restricted Owners Package.Jun 30 2020, 9:56 PM
Nescio added inline comments.Jun 30 2020, 9:58 PM
binaries/data/mods/public/simulation/templates/structures/cart_tophet.xml
4

Already defined in parent.

15

idem

37–39

idem

binaries/data/mods/public/simulation/templates/structures/rome_temple_vesta.xml
2

Does not really take any values defined in rome_temple, therefore unnecessary parent step.

binaries/data/mods/public/simulation/templates/template_structure_civic_civil_centre_military_colony.xml
51–53

This structure gets a territory root from its parent, therefore it is immune to territory decay.

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2557/display/redirect

Nescio updated this revision to Diff 12510.Jun 30 2020, 10:29 PM
  • rome_temple_mars

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2558/display/redirect

Freagarach added inline comments.
binaries/data/mods/public/simulation/templates/structures/rome_temple_vesta.xml
2

Well, it takes the civ and more importantly, the production queue.
I'd even say mars should inherit from rome_temple as well, but that may be contested.

Nescio added inline comments.Aug 5 2020, 8:06 PM
binaries/data/mods/public/simulation/templates/structures/rome_temple_vesta.xml
2

Production queue, good point!
I'll update this patch.
Having a parent just to save a <Civ> line is rather unusual. kush_shrine.xml and kush_temple_amun.xml don't inherit from kush_temple.xml either.

Nescio updated this revision to Diff 13088.Aug 5 2020, 8:10 PM
Vulcan added a comment.Aug 5 2020, 8:14 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2906/display/redirect

Freagarach added inline comments.Aug 5 2020, 8:37 PM
binaries/data/mods/public/simulation/templates/structures/rome_temple_vesta.xml
2

Not really for the civ line, but for the production queue change. Such that also mars has the vision tech, but that may be changing balance.

Nescio added inline comments.Aug 5 2020, 8:47 PM
binaries/data/mods/public/simulation/templates/structures/rome_temple_vesta.xml
2

rome_temple_mars.xml is not buildable, therefore its production queue does not affect gameplay balance.
Unlike b/a/e units, rome_temple.xml and rome_temple_vesta.xml are independent structures, one can not promote or upgrade to the other. Adding extra parenting just to save a few lines is unusual, if not inconsistent.
Likewise, pers_tacara.xml and pers_apadana.xml are very similar templates, but one is not the child of the other.

Freagarach accepted this revision.EditedAug 7 2020, 5:28 PM

Okay, point taken.

[EDIT]: Change is correct.

This revision is now accepted and ready to land.Aug 7 2020, 5:28 PM

Grmbl, I added a dot again after the diff. Can you close this one also please, @Nescio?

Nescio closed this revision.Aug 10 2020, 10:46 AM