Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Show First 20 Lines • Show All 389 Lines • ▼ Show 20 Lines | ret.name = { | ||||
"specific": (template.Identity.SpecificName || template.Identity.GenericName), | "specific": (template.Identity.SpecificName || template.Identity.GenericName), | ||||
"generic": template.Identity.GenericName | "generic": template.Identity.GenericName | ||||
}; | }; | ||||
ret.icon = template.Identity.Icon; | ret.icon = template.Identity.Icon; | ||||
ret.tooltip = template.Identity.Tooltip; | ret.tooltip = template.Identity.Tooltip; | ||||
ret.requiredTechnology = template.Identity.RequiredTechnology; | ret.requiredTechnology = template.Identity.RequiredTechnology; | ||||
ret.visibleIdentityClasses = GetVisibleIdentityClasses(template.Identity); | ret.visibleIdentityClasses = GetVisibleIdentityClasses(template.Identity); | ||||
ret.nativeCiv = template.Identity.Civ; | ret.nativeCiv = template.Identity.Civ; | ||||
ret.composition = template.Identity.Composition; | |||||
} | } | ||||
if (template.UnitMotion) | if (template.UnitMotion) | ||||
{ | { | ||||
ret.speed = { | ret.speed = { | ||||
"walk": getEntityValue("UnitMotion/WalkSpeed"), | "walk": getEntityValue("UnitMotion/WalkSpeed"), | ||||
}; | }; | ||||
ret.speed.run = getEntityValue("UnitMotion/WalkSpeed"); | ret.speed.run = getEntityValue("UnitMotion/WalkSpeed"); | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator