Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Show First 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | if (template.Identity) | ||||
ret.visibleIdentityClasses = GetVisibleIdentityClasses(template.Identity); | ret.visibleIdentityClasses = GetVisibleIdentityClasses(template.Identity); | ||||
} | } | ||||
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) | ||||
fatherbushido: you should always return something or you must change tooltip.js | |||||
ret.speed.run *= getEntityValue("UnitMotion/RunMultiplier"); | |||||
} | } | ||||
if (template.ProductionQueue) | if (template.ProductionQueue) | ||||
{ | { | ||||
ret.techCostMultiplier = {}; | ret.techCostMultiplier = {}; | ||||
for (let res in template.ProductionQueue.TechCostMultiplier) | for (let res in template.ProductionQueue.TechCostMultiplier) | ||||
ret.techCostMultiplier[res] = getEntityValue("ProductionQueue/TechCostMultiplier/" + res); | ret.techCostMultiplier[res] = getEntityValue("ProductionQueue/TechCostMultiplier/" + res); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
you should always return something or you must change tooltip.js