swapped obsolete supertype for getAncestors()
This commit is contained in:
parent
9be52e2b5f
commit
fa62e1428b
@ -244,7 +244,13 @@ function drawSpawns()
|
|||||||
)
|
)
|
||||||
|
|
||||||
if spawn.selected then
|
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
|
if #spawn.args > 2 then
|
||||||
text = text .. "\n---\nData:\n"
|
text = text .. "\n---\nData:\n"
|
||||||
for i=3, #spawn.args do
|
for i=3, #spawn.args do
|
||||||
|
Loading…
Reference in New Issue
Block a user