Changes between Version 1 and Version 4 of Ticket #4217


Ignore:
Timestamp:
Dec 13, 2016, 9:26:20 PM (7 years ago)
Author:
Vladislav Belov
Comment:

Few notes: 1.

if (template.name.specific != template.name.generic)
    return template.name.specific;
else
    return false;

Could be written shorter:

return template.name.specific != template.name.generic ? template.name.specific : false;

2.

if (template.name.specific.generic)
    return template.name.specific.generic;
return false;

The same:

return template.name.specific.generic || false;

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4217

    • Property Milestone Alpha 21Work In Progress
  • Ticket #4217 – Description

    v1 v4  
    11If one opens the tech tree and looks at the name of a tech that has a specific name, change to a civ that has a different (or no) specific name for that tech and then change back, then that tech will display the second civ's specific name (or in the case where the second civ doesn't have one, no specific name at all).
    2 
    32F.e. the "Steel Working" upgrade at the blacksmith for `iber` and `maur`, or the "Sentries" upgrade belonging to the wooden and stone towers when switching from a hellenic civ to a non-hellenic civ and back again.
    4 
    53Bug reported by !WarBeast.