swapped obsolete supertype for getAncestors()

This commit is contained in:
lustlion 2022-03-17 01:40:35 +01:00
parent 9be52e2b5f
commit fa62e1428b

View File

@ -244,7 +244,13 @@ function drawSpawns()
)
if spawn.selected then
local text = spawn.archetype.type.."\n("..spawn.archetype.supertype..")\n---\nPosition\n["..spawn.args[1]..","..spawn.args[2].."]"
local text = spawn.archetype.type .."\n("
local ancestors = getAncestors(spawn.archetype)
for i=1, #ancestors do
if i > 1 then text = text .. ", " end
text = text .. ancestors[i].type
end
text = text ..")\n---\nPosition\n["..spawn.args[1]..","..spawn.args[2].."]"
if #spawn.args > 2 then
text = text .. "\n---\nData:\n"
for i=3, #spawn.args do