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

oups

git-svn-id: http://svn.net-core.org/repos/t-engine4@4554 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2c9f1319
No related branches found
No related tags found
No related merge requests found
......@@ -161,11 +161,11 @@ function _M:makeEntityIcon(e, tiles, x, y, desc, gtxt, frame)
end
function _M:handleEffect(eff_id, e, p, ex, h)
local player = game.player
local dur = p.dur + 1
local name = e.desc
local desc = nil
local eff_subtype = table.concat(table.keys(e.subtype), "/")
print("==",e.name,e.desc)
if e.display_desc then name = e.display_desc(self, p) end
if p.save_string and p.amount_decreased and p.maximum and p.total_dur then
desc = ("#{bold}##GOLD#%s\n(%s: %s)#WHITE##{normal}#\n"):format(name, e.type, eff_subtype)..e.long_desc(player, p).." "..("%s reduced the duration of this effect by %d turns, from %d to %d."):format(p.save_string, p.amount_decreased, p.maximum, p.total_dur)
......
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