UNPKG

poe-i18n

Version:

i18n utility for Path of Exile

18 lines (17 loc) 717 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var regexp_util_1 = require("./regexp_util"); /** usually everything in poe is rounded down but in this case * it's done properly * evidence: life regen rolls 60 - 120 which would result in (1-2) * Alyways rounding down would result in virtually no 2 rolls. * but there are currenty ~300 amulets with 2 and ~160 with 1 listed on poe.trade * reason beeing that the next tier rolls 121-180. */ var per_minute_to_per_second = { format: function (n) { return "" + Math.round(n / 60); }, inverse: function (s) { return +s * 60; }, regexp: regexp_util_1.NUMBER, negates: false }; exports.default = per_minute_to_per_second;