Page MenuHomeWildfire Games

rename template_structure_defense* to *defensive*
ClosedPublic

Authored by Nescio on Mar 16 2019, 10:58 PM.

Details

Summary

Currently:

  • Civic-class structures have corresponding template_structure_civic*
  • Economic-class structures have corresponding template_structure_economic*
  • Military-class structures have corresponding template_structure_military*
  • Resource-class structures have corresponding template_structure_resource*
  • Special-class structures have corresponding template_structure_special*

However:

  • Defensive-class structures have corresponding template_structure_defense*

This patch:

  • moves *_defense* templates to *_defensive* for consistency
  • updates all their specific children accordingly (did a grep)
Test Plan

Ought to be unproblematic.

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.Mar 16 2019, 10:58 PM
Vulcan added a subscriber: Vulcan.Mar 16 2019, 11:06 PM

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

Link to build: https://jenkins.wildfiregames.com/job/differential/1095/display/redirect

bb added a comment.Mar 16 2019, 11:25 PM

Idea is ok, but patch is inclomplete: your grep doesn't seem to have found the skirmish buildings (the templates under skirmish/structures/)

Oops, you're right; I did a grep in the other/ and structure/ directories, but I forgot to check skirmish/structures/ ; I should have done simply a grep -r defense_ * in templates/

Nescio updated this revision to Diff 7554.Mar 17 2019, 9:57 AM

Updated, now with skirmish templates.

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

Link to build: https://jenkins.wildfiregames.com/job/differential/1097/display/redirect

bb accepted this revision.Mar 17 2019, 1:56 PM

Patch reads correct, unit demo test succeeded, grep gives translate hate=> accept

This revision is now accepted and ready to land.Mar 17 2019, 1:56 PM
This revision was automatically updated to reflect the committed changes.