From fa62e1428b07547bb2face314437404b5aa09521 Mon Sep 17 00:00:00 2001 From: lustlion Date: Thu, 17 Mar 2022 01:40:35 +0100 Subject: [PATCH] swapped obsolete supertype for getAncestors() --- code/spawn.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/spawn.lua b/code/spawn.lua index ce1d5f3..4f46f00 100644 --- a/code/spawn.lua +++ b/code/spawn.lua @@ -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