Commit e0033f80f740217c7665d93b13845430c99e4c58
1 parent
20dfed94
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
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -95,7 +95,7 @@ local maker_list = function() |
95 | 95 | answers = { |
96 | 96 | {"Yes please.", action=function(npc, player) |
97 | 97 | local d = require("engine.dialogs.GetText").new("Name your item", "Name", 2, 40, function(txt) |
98 | - art.name = txt | |
98 | + art.name = txt:removeColorCodes():gsub("#", " ") | |
99 | 99 | game.log("#LIGHT_BLUE#The merchant carefully hands you: %s", art:getName{do_color=true}) |
100 | 100 | end, function() game.log("#LIGHT_BLUE#The merchant carefully hands you: %s", art:getName{do_color=true}) end) |
101 | 101 | game:registerDialog(d) | ... | ... |
-
Please register or login to post a comment