Differential D1718 Diff 16148 ps/trunk/binaries/data/mods/public/gui/reference/common/TemplateParser.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/reference/common/TemplateParser.js
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | if (template.Identity.Rank) | ||||
parsed.promotion = { | parsed.promotion = { | ||||
"current_rank": template.Identity.Rank, | "current_rank": template.Identity.Rank, | ||||
"entity": template.Promotion && template.Promotion.Entity | "entity": template.Promotion && template.Promotion.Entity | ||||
}; | }; | ||||
if (template.ResourceSupply) | if (template.ResourceSupply) | ||||
parsed.supply = { | parsed.supply = { | ||||
"type": template.ResourceSupply.Type.split("."), | "type": template.ResourceSupply.Type.split("."), | ||||
"amount": template.ResourceSupply.Amount, | "amount": template.ResourceSupply.Max, | ||||
}; | }; | ||||
if (parsed.upgrades) | if (parsed.upgrades) | ||||
parsed.upgrades = this.getActualUpgradeData(parsed.upgrades, civCode); | parsed.upgrades = this.getActualUpgradeData(parsed.upgrades, civCode); | ||||
if (parsed.wallSet) | if (parsed.wallSet) | ||||
{ | { | ||||
parsed.wallset = {}; | parsed.wallset = {}; | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator