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

Нет описания правки
мНет описания правки
Строка 41: Строка 41:
if mode == "inventory" and inventory.startingInventory then
if mode == "inventory" and inventory.startingInventory then
for itemId, count in pairs(inventory.startingInventory) do
for itemId, count in pairs(inventory.startingInventory) do
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 .. "}} }} }}")
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "] {{#invoke:Prototypes/Хранилища/Предмет|main|framing|contained|" .. itemId .. "}} }}")
end
end
if result == "" then
if result == "" then
Строка 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 .. "] {{СollapsibleMenu|{{#invoke:Prototypes/Хранилища/Предмет|main|contained|" .. itemId .. "}} }} }}")
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "] {{#invoke:Prototypes/Хранилища/Предмет|main|framing|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 .. "] {{СollapsibleMenu|{{#invoke:Prototypes/Хранилища/Предмет|main|contained|" .. itemId .. "}} }} }}")
result = result .. mw.getCurrentFrame():preprocess("{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=" .. itemId .. ".png|name={{#invoke:Entity Lookup|getname|" .. itemId .. "}} [" .. count .. "] {{#invoke:Prototypes/Хранилища/Предмет|main|framing|contained|" .. itemId .. "}} }}")
end
end
end
end