summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 11:21:00 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 11:21:00 -0400
commit0413f23df1d26b60348872c5ca747d4b0049673b (patch)
treea9ae66b586c9ee324c87af338609861de540c1c3
parent8fbd9cd23b1b2ed76caadced11bc278662b32cb1 (diff)
downloadunifieddyes-0413f23df1d26b60348872c5ca747d4b0049673b.tar
unifieddyes-0413f23df1d26b60348872c5ca747d4b0049673b.tar.gz
unifieddyes-0413f23df1d26b60348872c5ca747d4b0049673b.tar.bz2
unifieddyes-0413f23df1d26b60348872c5ca747d4b0049673b.tar.xz
unifieddyes-0413f23df1d26b60348872c5ca747d4b0049673b.zip
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.
-rw-r--r--init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 39846f8..a3584af 100644
--- a/init.lua
+++ b/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 = {