Модуль:FirearmsStats: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 23: | Строка 23: | ||
local location = frame.args.location or "" | local location = frame.args.location or "" | ||
-- | -- Если dps и dataSort заданы вручную, используем их, иначе рассчитываем по формуле | ||
local dps = fireRate * (blunt + piercing + heat + radiation) | local dps = tonumber(frame.args.dps) or fireRate * (blunt + piercing + heat + radiation) | ||
local dataSort = blunt + slash + piercing + heat + radiation + caustic | local dataSort = tonumber(frame.args.dataSort) or (blunt + slash + piercing + heat + radiation + caustic) | ||
-- Формирование строки таблицы | -- Формирование строки таблицы | ||