Модуль:BotanyStats: различия между версиями

мНет описания правки
мНет описания правки
Строка 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 "1" -- Потенция
     local potency = frame.args.potency or 1           -- Потенция
     local yield = frame.args.yield or "0" -- Урожайность
     local yield = frame.args.yield or 0               -- Урожайность
     local lifespan = frame.args.lifespan or "0" -- Время жизни
     local lifespan = frame.args.lifespan or 0         -- Время жизни
     local maturation = frame.args.maturation or "0" -- Созревания
     local maturation = frame.args.maturation or 0     -- Созревания
     local production = frame.args.production or "0" -- Продуктивность
     local production = frame.args.production or 0     -- Продуктивность
     local growthStages = frame.args.growthStages or "6" -- Стадии роста
     local growthStages = frame.args.growthStages or 6 -- Стадии роста
      
      
     local waterConsumption = frame.args.waterConsumption or "0.5" -- Вода
     local waterConsumption = frame.args.waterConsumption or 0.5       -- Вода
     local nutrientConsumption = frame.args.nutrientConsumption or "0.75" -- Удобрения
     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 "7" -- Освещения
     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 ""       -- Мутации  


     -- Преобразование температуры из Кельвинов в Цельсии
     -- Преобразование температуры из Кельвинов в Цельсии