This patch alphabetizes the <EntityLimits> inside the player.xml special template. This should make mistakes and subsequent fixes such as rP23788 less likely.
While at it, it also corrects the indentation under <StatisticsTracker> in the same file,
[EDIT] and alphabetizes the <StructureClasses> and <UnitClasses>.
See also D2887.
Details
- Reviewers
Freagarach - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) - Commits
- rP23923: Alphabetize entity limits and statistics classes.
Check for mistakes and omissions.
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2513/display/redirect
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | While at it one could sort these also, unless there is a different order for these? |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | Isn't this the order they're listed in the summary? |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | Ah I see. Would be nice to keep the same order indeed. Not sure why Domestic is before Trader then, for the former is not shown? |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | Good question! I don't know. I suppose Domestic is used for the last column of the Resources tab? Likewise, FemaleCitizen is not displayed directly, but presumably used for calculating the feminization number? |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | Removing Domestic, or any other of the classes listed here, does indeed cause errors with the summary code. Reordering the classes seems to have no consequences. Though the question is whether alphabetical order is indeed preferable to display order in this case. |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) |
Yes, but why it is shown before the Trader was my question. I guess nobody explicitly used an order here.
Perhaps, because display ordering can not be fully achieved (due to the tabs and implicit uses), I would say alphabetical order would be nice. What say you? |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | I've done some searching. E.g. the domestic entry was added here (actually in StatisticsTracker) in D1052/rP20543. Maybe at this very location so that only one line was altered instead of a comma at the previously last line and then this one. Anyway, there is no explicit reason for the current ordering it seems. |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | If you think alphabetical order is better in this case, I don't have any objections. |
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2524/display/redirect
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) |
Well, the person committing this has the final word obviously ^^
Because they are counted separately (total amount trained/built etc.). |
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2745/display/redirect
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2848/display/redirect
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) |
I didn't think I would be that person xD |
binaries/data/mods/public/simulation/templates/special/player/player.xml | ||
---|---|---|
94 ↗ | (On Diff #12439) | Didn't or don't? |