summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-24 23:36:31 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-24 23:36:31 +0000
commit6a38874fed2ede86cac0ca906c2fa90370432280 (patch)
tree2e397ccd558d5836b12bacb31c076a56a1cb5ddf /crawl-ref/source/dat
parentaefd04b12411ec9df4189696e375ebc2fc70572b (diff)
downloadcrawl-ref-6a38874fed2ede86cac0ca906c2fa90370432280.tar.gz
crawl-ref-6a38874fed2ede86cac0ca906c2fa90370432280.zip
Merge r6653, FR 2017262: add chunk colour to eat prompt.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6676 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat')
-rw-r--r--crawl-ref/source/dat/lua/eat.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dat/lua/eat.lua b/crawl-ref/source/dat/lua/eat.lua
index f27f69068b..4bd520b9e5 100644
--- a/crawl-ref/source/dat/lua/eat.lua
+++ b/crawl-ref/source/dat/lua/eat.lua
@@ -8,11 +8,11 @@
-- See c_eat in this file if you want to tweak eating behaviour further.
---------------------------------------------------------------------------
function prompt_eat(i)
- local iname = item.name(i, "a")
+ local iname = item.name_coloured(i, "a")
if item.quantity(i) > 1 then
iname = "one of " .. iname
end
- crawl.mpr("Eat " .. iname .. "?", "prompt")
+ crawl.formatted_mpr("Eat " .. iname .. "?", "prompt")
local res
res = crawl.getch()