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

мНет описания правки
мНет описания правки
Строка 99: Строка 99:
return ""
return ""
end
end
 
local joined = table.concat(states, ", ")
local joined = table.concat(states, ", ")
local base = "https://github.com/space-syndicate/space-station-14/blob/master/Resources/Textures/"
local base = "https://github.com/space-syndicate/space-station-14/blob/master/Resources/Textures/"
  .. getSpritePath(entry) .. "/"
  .. getSpritePath(entry) .. "/"
joined = mw.ustring.gsub(joined, "([%w_]+)",
joined = mw.ustring.gsub(joined, "([%w_%-]+)",
"[" .. base .. "%1.png %1]")
"[" .. base .. "%1.png %1]")
 
return "(state: " .. joined .. ")"
return "(state: " .. joined .. ")"
end
end