Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/tooltips.js
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | for (let type in template.attack) | ||||
let attackLabel = headerFont(g_AttackTypes[type]); | let attackLabel = headerFont(g_AttackTypes[type]); | ||||
if (type == "Capture" || type != "Ranged") | if (type == "Capture" || type != "Ranged") | ||||
{ | { | ||||
tooltips.push(sprintf(translate("%(attackLabel)s %(details)s, %(rate)s"), { | tooltips.push(sprintf(translate("%(attackLabel)s %(details)s, %(rate)s"), { | ||||
"attackLabel": attackLabel, | "attackLabel": attackLabel, | ||||
"details": | "details": | ||||
type == "Capture" ? | type == "Capture" ? | ||||
template.attack.Capture.value : | template.attack.Capture.value.toFixed(1) : | ||||
damageTypesToText(template.attack[type].damage), | damageTypesToText(template.attack[type].damage), | ||||
"rate": rate | "rate": rate | ||||
})); | })); | ||||
continue; | continue; | ||||
} | } | ||||
let minRange = Math.round(template.attack[type].minRange); | let minRange = Math.round(template.attack[type].minRange); | ||||
let maxRange = Math.round(template.attack[type].maxRange); | let maxRange = Math.round(template.attack[type].maxRange); | ||||
▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator