From da11ae9161393df71a84b66345cb420fe142a7c1 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sat, 13 Apr 2024 21:53:42 +0200 Subject: [PATCH] Render ghosts as purple --- module/map/dump_entities.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/map/dump_entities.lua b/module/map/dump_entities.lua index 0c971f4..eab898d 100644 --- a/module/map/dump_entities.lua +++ b/module/map/dump_entities.lua @@ -34,7 +34,12 @@ local function dump_entities(entities) -- Format as hexadecimal table.insert(map_data, position.x + x - (size_x-1)/2) table.insert(map_data, position.y + y - (size_y-1)/2) + if entity.type == "entity-ghost" then + -- Render as purple + table.insert(map_data, "A800A8") + else table.insert(map_data, string.format("%02x%02x%02x", map_color.r, map_color.g, map_color.b)) + end end end end