[<%= _.last(id.split('.')) %>] <%= data.name %>

<%= _.template(data.resource, { interpolate: /{{([\s\S]+?)}}/g })({ cost: data.costBurn }) %> (<%= _.lowerCase(locale.Range) %> : <%= data.rangeBurn %>)

<% function replaceVarType (varType) { switch (varType) { case 'attackdamage': return 'AD'; case 'spelldamage': return 'AP'; case 'bonushealth': return 'bonus health'; default: return varType; } } var descriptionDatas = _.merge( _.reduce(data.effectBurn, function (object, value, key) { if (value) { object['e' + key] = value; } return object; }, {}), _.reduce(_.times(10, function (i) { return 'f' + (i + 1); }), function (object, f) { object[f] = '(missing data : ' + f + ')'; return object; }, {}), _.reduce(data.vars, function (object, vars) { object[vars.key] = vars.coeff.map(function (c) { return c*100; }).join('/') + '% ' + vars.link; return object; }, {}) ); var formattedDatas = _.reduce(descriptionDatas, function (object, value, key) { if ((key.startsWith('a') || key.startsWith('f')) && key.length <= 3) { var valueRaw = _.head(value.split(' ')); var varType = _.last(value.split(' ')); object[key] = '' + valueRaw + ' ' + replaceVarType(varType) + ''; } else { object[key] = '' + value + ''; } return object; }, {}); var template = _.template(data.tooltip, { interpolate: /{{([\s\S]+?)}}/g })(formattedDatas); print(template); %>

<%= data.maxrank %> ranks

<%= data.cooldownBurn %> seconds cooldown