Item: minor chandes
This commit is contained in:
@@ -103,17 +103,19 @@ local function itemDefToLuantiDef(itemDef)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if s._title_color ~= nil and s._description_color ~= nil then
|
if s._title_color ~= nil and s._description_color ~= nil then
|
||||||
description = colorize(s._title_color ,S(title))..'\n'..
|
title = colorize(s._title_color ,S(title))
|
||||||
colorize(s._description_color, S(description))
|
description = colorize(s._description_color, S(description))
|
||||||
else
|
else
|
||||||
error('Item description color parameters cannot be empty.')
|
error('Item description color parameters cannot be empty.')
|
||||||
end
|
end
|
||||||
|
|
||||||
assert(s._rarity ~= nil, 'The rarity of an item cannot be empty.')
|
assert(s._rarity ~= nil, 'The rarity of an item cannot be empty.')
|
||||||
|
|
||||||
description = addRarityToDesc(s._rarity, description)
|
local luantiDescription = addRarityToDesc(s._rarity, title..'\n'..description)
|
||||||
|
|
||||||
s.description = description..core.get_background_escape_sequence('#110F13')
|
s._title = title
|
||||||
|
s._description = description
|
||||||
|
s.description = luantiDescription..core.get_background_escape_sequence('#110F13')
|
||||||
|
|
||||||
local luantiDef = defMerge(s, c)
|
local luantiDef = defMerge(s, c)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user