Модуль:Prototypes/Механика/Стоимость: различия между версиями

мНет описания правки
мНет описания правки
Строка 24: Строка 24:
     local output = {}
     local output = {}
     local seen = {}
     local seen = {}
    table.insert(output, '! Сортировка (по стоимости)')
    table.insert(output, '|-')


     for _, item in ipairs(priceData) do
     for _, item in ipairs(priceData) do
Строка 40: Строка 42:
                 table.insert(
                 table.insert(
                     output,
                     output,
                     "<tr data-sort-value=" .. item.StaticPrice.price ..  
                     "|data-sort-value=" .. item.StaticPrice.price ..  
                     "><td>{{Cut-Layout|1=[[File:" .. item.id .. ".png|32px|link=]] " ..  
                     "|{{Cut-Layout|1=[[File:" .. item.id .. ".png|32px|link=]] " ..  
                     name .. "|2=" .. priceFormatted .. "}}"
                     name .. "|2=" .. priceFormatted .. "}}"
                 )
                 )
                 table.insert(output, "</tr></td>")
                 table.insert(output, "|-")
             end
             end
         end
         end