Skip to content
Snippets Groups Projects
Commit e0033f80 authored by dg's avatar dg
Browse files

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
parent 20dfed94
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment