Модуль:Prototypes/Объект/Торгомат: различия между версиями

мНет описания правки
Метка: ручная отмена
Нет описания правки
Метка: ручная отмена
Строка 51: Строка 51:
if inventory.contrabandInventory then
if inventory.contrabandInventory then
for itemId, count in pairs(inventory.contrabandInventory) do
for itemId, count in pairs(inventory.contrabandInventory) do
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "]}}")
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "] {{СollapsibleMenu|{{#invoke:Prototypes/Предмет/Хранилища|main|contained|" .. itemId .. "}} }} }}")
end
end
end
end
Строка 62: Строка 62:
if inventory.emaggedInventory then
if inventory.emaggedInventory then
for itemId, count in pairs(inventory.emaggedInventory) do
for itemId, count in pairs(inventory.emaggedInventory) do
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "]}}")
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "] {{СollapsibleMenu|{{#invoke:Prototypes/Предмет/Хранилища|main|contained|" .. itemId .. "}} }} }}")
end
end
end
end