Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | if (template.Identity) | ||||
ret.nativeCiv = template.Identity.Civ; | ret.nativeCiv = template.Identity.Civ; | ||||
} | } | ||||
if (template.UnitMotion) | if (template.UnitMotion) | ||||
{ | { | ||||
ret.speed = { | ret.speed = { | ||||
"walk": getEntityValue("UnitMotion/WalkSpeed"), | "walk": getEntityValue("UnitMotion/WalkSpeed"), | ||||
}; | }; | ||||
if (template.UnitMotion.Run) | ret.speed.run = getEntityValue("UnitMotion/WalkSpeed"); | ||||
ret.speed.run = getEntityValue("UnitMotion/Run/Speed"); | if (template.UnitMotion.RunMultiplier) | ||||
ret.speed.run *= getEntityValue("UnitMotion/RunMultiplier"); | |||||
} | } | ||||
if (template.Upgrade) | if (template.Upgrade) | ||||
{ | { | ||||
ret.upgrades = []; | ret.upgrades = []; | ||||
for (let upgradeName in template.Upgrade) | for (let upgradeName in template.Upgrade) | ||||
{ | { | ||||
let upgrade = template.Upgrade[upgradeName]; | let upgrade = template.Upgrade[upgradeName]; | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator