mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-26 09:23:47 +01:00
clarify item desc in split palette register nodes helper
This commit is contained in:
parent
230ac1342a
commit
27fe090395
4
init.lua
4
init.lua
@ -200,9 +200,9 @@ function unifieddyes.generate_split_palette_nodes(name, def, drop)
|
|||||||
local def2 = table.copy(def)
|
local def2 = table.copy(def)
|
||||||
local desc_color = string.gsub(string.upper(string.sub(color, 1, 1))..string.sub(color, 2), "_", " ")
|
local desc_color = string.gsub(string.upper(string.sub(color, 1, 1))..string.sub(color, 2), "_", " ")
|
||||||
if string.sub(def2.description, -1) == ")" then
|
if string.sub(def2.description, -1) == ")" then
|
||||||
def2.description = string.sub(def2.description, 1, -2)..", "..desc_color..")"
|
def2.description = string.sub(def2.description, 1, -2)..", "..desc_color.." shades)"
|
||||||
else
|
else
|
||||||
def2.description = def2.description.."("..desc_color..")"
|
def2.description = def2.description.."("..desc_color.." shades)"
|
||||||
end
|
end
|
||||||
def2.palette = "unifieddyes_palette_"..color.."s.png"
|
def2.palette = "unifieddyes_palette_"..color.."s.png"
|
||||||
def2.paramtype2 = "colorfacedir"
|
def2.paramtype2 = "colorfacedir"
|
||||||
|
Loading…
Reference in New Issue
Block a user