Модуль:BotanyStats: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 7: | Строка 7: | ||
function p.templateCells(frame) | function p.templateCells(frame) | ||
local anchorName = frame.args.anchorName or "" -- | local anchorName = frame.args.anchorName or "" -- Якорь | ||
local fruitId = frame.args.fruitId or "" -- ID плода | local fruitId = frame.args.fruitId or "" -- ID плода | ||
local seedId = frame.args.seedId or "" -- ID семечка | local seedId = frame.args.seedId or "" -- ID семечка | ||
local potency = frame.args.potency or | local potency = frame.args.potency or 1 -- Потенция | ||
local yield = frame.args.yield or | local yield = frame.args.yield or 0 -- Урожайность | ||
local lifespan = frame.args.lifespan or | local lifespan = frame.args.lifespan or 0 -- Время жизни | ||
local maturation = frame.args.maturation or | local maturation = frame.args.maturation or 0 -- Созревания | ||
local production = frame.args.production or | local production = frame.args.production or 0 -- Продуктивность | ||
local growthStages = frame.args.growthStages or | local growthStages = frame.args.growthStages or 6 -- Стадии роста | ||
local waterConsumption = frame.args.waterConsumption or | local waterConsumption = frame.args.waterConsumption or 0.5 -- Вода | ||
local nutrientConsumption = frame.args.nutrientConsumption or | local nutrientConsumption = frame.args.nutrientConsumption or 0.75 -- Удобрения | ||
local idealHeatKelvin = tonumber(frame.args.idealHeat) or 293 -- Температура | local idealHeatKelvin = tonumber(frame.args.idealHeat) or 293 -- Температура | ||
local idealLight = frame.args.idealLight or | local idealLight = frame.args.idealLight or 7 -- Освещения | ||
local description = frame.args.description or "" -- Описание | local description = frame.args.description or "" -- Описание | ||
local location = frame.args.location or "" -- Местонахождение | local location = frame.args.location or "" -- Местонахождение | ||
local mutation = frame.args.mutation or "" -- Мутации | local mutation = frame.args.mutation or "" -- Мутации | ||
-- Преобразование температуры из Кельвинов в Цельсии | -- Преобразование температуры из Кельвинов в Цельсии | ||