From 11a46e62270ea211d88a35d035732514842fcc5c Mon Sep 17 00:00:00 2001 From: lustlion Date: Thu, 17 Mar 2022 00:38:08 +0100 Subject: [PATCH] spawns now also display archetype* on drawing the data *to be replaced with actual parent once the class thing is implemented? --- code/spawn.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/spawn.lua b/code/spawn.lua index 4358bc1..ce1d5f3 100644 --- a/code/spawn.lua +++ b/code/spawn.lua @@ -24,7 +24,7 @@ function selectSpawns(rect) local x, y = rect:getPoints() local select_rect = Rect:fromPoints(x-{x=Camera.pos.x,y=Camera.pos.y},y-{x=Camera.pos.x,y=Camera.pos.y}) select_rect:fix() - + for _, spawn in pairs(LoadedObjects.Spawns) do local offset_x, offset_y = spawn.archetype.display:getCenteredOffset() @@ -244,7 +244,7 @@ function drawSpawns() ) if spawn.selected then - local text = spawn.archetype.type.."\n---\nPosition\n["..spawn.args[1]..","..spawn.args[2].."]" + local text = spawn.archetype.type.."\n("..spawn.archetype.supertype..")\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