From eed6f99acf0f59b01fc9cbf2b7089cb536bb5c3b Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Mon, 26 May 2014 22:25:15 +0200 Subject: [PATCH] OMFGGGGGGG IIRC this is graziel's fault! *prepares a weapon* :) --- game/modules/tome/class/Object.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/modules/tome/class/Object.lua b/game/modules/tome/class/Object.lua index 16edd3b39b..9b28e7f5e4 100644 --- a/game/modules/tome/class/Object.lua +++ b/game/modules/tome/class/Object.lua @@ -673,8 +673,8 @@ function _M:getTextualDesc(compare_with, use_actor) if type(message) == 'function' then desc:add(message(l and l[3], r and r[3] or 0), true) elseif type(message) == 'string' then - prefix = '* ' - color = 'WHITE' + local prefix = '* ' + local color = 'WHITE' if l and not r then color = 'GREEN' prefix = '+ ' @@ -755,7 +755,7 @@ function _M:getTextualDesc(compare_with, use_actor) end ) - found = false + local found = false for i, v in ipairs(compare_with or {}) do if v[field] and v[field].no_stealth_break then found = true -- GitLab