mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-26 01:13:49 +01:00
fix incorrect handling of "azure" re: wallmounted palette
(it doesn't exist there :P replaced with light blue) also fixed missing craft helper recipe for same and fixed missing light_red in color<->palette table.
This commit is contained in:
parent
8fbd9cd23b
commit
0413f23df1
8
init.lua
8
init.lua
@ -276,7 +276,8 @@ function unifieddyes.register_color_craft(craft)
|
||||
|
||||
if craft.palette == "wallmounted" then
|
||||
register_c(craft, "green", "", "light_")
|
||||
register_c(craft, "azure", "", "")
|
||||
register_c(craft, "blue", "", "light_")
|
||||
register_c(craft, "pink", "", "")
|
||||
hues_table = unifieddyes.HUES_WALLMOUNTED
|
||||
sats_table = {""}
|
||||
vals_table = unifieddyes.VALS
|
||||
@ -594,7 +595,7 @@ function unifieddyes.getpaletteidx(color, palette_type)
|
||||
if color == "green" and shade == "light" then return 48,3
|
||||
elseif color == "brown" then return 17,1
|
||||
elseif color == "pink" then return 56,7
|
||||
elseif color == "azure" then return 40,5
|
||||
elseif color == "blue" and shade == "light" then return 40,5
|
||||
elseif hues_wallmounted[color] and shades_wallmounted[shade] then
|
||||
return (shades_wallmounted[shade] * 64 + hues_wallmounted[color] * 8), hues_wallmounted[color]
|
||||
end
|
||||
@ -1021,7 +1022,6 @@ function unifieddyes.show_airbrush_form(player)
|
||||
t[#t+1] = color_button_size
|
||||
t[#t+1] = selindic
|
||||
|
||||
|
||||
if painting_with then
|
||||
t[#t+1] = "label[12.6,"
|
||||
t[#t+1] = (vps*5.02+vs)
|
||||
@ -1342,6 +1342,8 @@ for _, palette in ipairs({"extended", "old89", "wallmounted"}) do
|
||||
end
|
||||
end
|
||||
|
||||
unifieddyes.palette_has_color["wallmounted_light_red"] = true
|
||||
|
||||
-- crafting!
|
||||
|
||||
unifieddyes.base_color_crafts = {
|
||||
|
Loading…
Reference in New Issue
Block a user