Page MenuHomeWildfire Games

set training time increase in advanced and elite technologies
ClosedPublic

Authored by Nescio on Jul 5 2020, 10:07 PM.

Details

Reviewers
borg-
wraitii
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP23818: Move train time increase for advanced/elite to the upgrade tech.
Summary

spart_champion_infantry_sword.xml costs +5 seconds, upgrade_rank_advanced_mercenary.json increases training time by 20%, upgrade_rank_elite_healer.json does not. This is not really consistent.
A much cleaner and more efficient approach is setting a training time modification instead in the Advanced and Elite technologies, which is much easier to maintain long term. This patch does that, of 20%, which means effectively no change for mercenaries and a negligible difference for the Skiritai (10 s × (1.2^2 - 1) = 4.4 s, instead of 5 s).
While at it, also properly order the modifications, rephrase the tooltip per the style guide, and rename them to unit_advanced.json and unit_elite.json, respectively.
See also D2685.

Test Plan

Check for mistakes.

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

Nescio created this revision.Jul 5 2020, 10:07 PM
Owners added a subscriber: Restricted Owners Package.Jul 5 2020, 10:07 PM

Build failure - The Moirai have given mortals hearts that can endure.

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

borg- added a subscriber: borg-.Jul 6 2020, 12:47 AM

Seems much better for future patchs.

borg- added a comment.Jul 6 2020, 12:35 PM

@Nescio look mace silver shields, is a elite rank.

Yes, I did, and no, it isn't. Only entities with <Rank>Elite</Rank> are affected.

borg- accepted this revision.EditedJul 9 2020, 1:19 AM

Putting "Cost/BuildTime" on the "Rank Techs" seems to make more sense, besides being easier for future changes. Bassicaly no changes in gameplay.

Patch is also very useful for D2843.

This revision is now accepted and ready to land.Jul 9 2020, 1:19 AM
wraitii accepted this revision.Jul 12 2020, 10:51 AM
wraitii added a subscriber: wraitii.

Seems OK.

I suppose 20% increased build time is a little cheap compared to how units currently upgrade :p but that's a separate topic.

Nescio added a comment.EditedJul 12 2020, 10:54 AM

(See also D2685.)

This revision was landed with ongoing or failed builds.Jul 12 2020, 11:15 AM
This revision was automatically updated to reflect the committed changes.