Модуль:Песочница/Pok: различия между версиями

мНет описания правки
мНет описания правки
Строка 236: Строка 236:
        local stackEntity = materialMapping[material] or material
        local stackEntity = materialMapping[material] or material
        local scaledAmount = (amount * materialUseMultiplier) / 100
        local scaledAmount = (amount * materialUseMultiplier) / 100
        table.insert(materialEntries, string.format('[[File:%s.png|32x32px|link=]] %g {{#invoke:Entity Lookup|getname|%s}}', stackEntity, scaledAmount, stackEntity))
        table.insert(materialEntries, string.format('<b>[[File:%s.png|32x32px|link=]] %g {{#invoke:Entity Lookup|getname|%s}}</b>', stackEntity, scaledAmount, stackEntity))
    end
    end
    out = out .. table.concat(materialEntries, ", ")
    out = out .. table.concat(materialEntries)
else
else
    out = out .. 'Нет данных о материалах'
    out = out .. 'Нет данных о материалах'