Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/reference/common/TemplateParser.js
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | getEntity(templateName, civCode) | ||||
if (parsed.wallSet) | if (parsed.wallSet) | ||||
{ | { | ||||
parsed.wallset = {}; | parsed.wallset = {}; | ||||
if (!parsed.upgrades) | if (!parsed.upgrades) | ||||
parsed.upgrades = []; | parsed.upgrades = []; | ||||
// Note: An assumption is made here that wall segments all have the same armor and auras | // Note: An assumption is made here that wall segments all have the same resistance and auras | ||||
let struct = this.getEntity(parsed.wallSet.templates.long, civCode); | let struct = this.getEntity(parsed.wallSet.templates.long, civCode); | ||||
parsed.armour = struct.armour; | parsed.resistance = struct.resistance; | ||||
parsed.auras = struct.auras; | parsed.auras = struct.auras; | ||||
// For technology cost multiplier, we need to use the tower | // For technology cost multiplier, we need to use the tower | ||||
struct = this.getEntity(parsed.wallSet.templates.tower, civCode); | struct = this.getEntity(parsed.wallSet.templates.tower, civCode); | ||||
parsed.techCostMultiplier = struct.techCostMultiplier; | parsed.techCostMultiplier = struct.techCostMultiplier; | ||||
let health; | let health; | ||||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator