From e0033f80f740217c7665d93b13845430c99e4c58 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 21 May 2012 14:13:38 +0000 Subject: [PATCH] Fix naming the lost merchant artifact when using # git-svn-id: http://svn.net-core.org/repos/t-engine4@5162 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/chats/last-hope-lost-merchant.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/data/chats/last-hope-lost-merchant.lua b/game/modules/tome/data/chats/last-hope-lost-merchant.lua index 055dc6683a..fee2ce0f46 100644 --- a/game/modules/tome/data/chats/last-hope-lost-merchant.lua +++ b/game/modules/tome/data/chats/last-hope-lost-merchant.lua @@ -95,7 +95,7 @@ local maker_list = function() answers = { {"Yes please.", action=function(npc, player) local d = require("engine.dialogs.GetText").new("Name your item", "Name", 2, 40, function(txt) - art.name = txt + art.name = txt:removeColorCodes():gsub("#", " ") game.log("#LIGHT_BLUE#The merchant carefully hands you: %s", art:getName{do_color=true}) end, function() game.log("#LIGHT_BLUE#The merchant carefully hands you: %s", art:getName{do_color=true}) end) game:registerDialog(d) -- GitLab