summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-12 22:29:00 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-12 22:29:00 -0400
commit97483c474dd5415c0ef34b9b4bcd75fa38f2e133 (patch)
treefc7dba198d867c17d0386fbaa38a46d6533b6de9
parent61d24d1f1da862f497d5c7dc04faf1d88c7c5393 (diff)
downloadunifiedmesecons-97483c474dd5415c0ef34b9b4bcd75fa38f2e133.tar
unifiedmesecons-97483c474dd5415c0ef34b9b4bcd75fa38f2e133.tar.gz
unifiedmesecons-97483c474dd5415c0ef34b9b4bcd75fa38f2e133.tar.bz2
unifiedmesecons-97483c474dd5415c0ef34b9b4bcd75fa38f2e133.tar.xz
unifiedmesecons-97483c474dd5415c0ef34b9b4bcd75fa38f2e133.zip
adjust to follow expanded old-89 palette
(now with 24 hues plus greys, plus the few extra this mod uses)
-rw-r--r--init.lua34
1 files changed, 13 insertions, 21 deletions
diff --git a/init.lua b/init.lua
index b7ee369..7b621a0 100644
--- a/init.lua
+++ b/init.lua
@@ -1,24 +1,7 @@
-local hues = {
- "red",
- "orange",
- "yellow",
- "lime",
- "green",
- "aqua",
- "cyan",
- "skyblue",
- "blue",
- "violet",
- "magenta",
- "redviolet",
- "pink",
- "dark_green",
- "brown",
- "black",
- "dark_grey",
- "grey",
- "white",
-}
+local hues = table.copy(unifieddyes.HUES_WITH_GREY)
+for _,i in ipairs({"pink","dark_green","brown","black","dark_grey","white"}) do
+ table.insert(hues, i)
+end
local function insulated_wire_get_rules(node)
local rules = {{x = 1, y = 0, z = 0},
@@ -477,3 +460,12 @@ for _,color in pairs(hues) do -- allow re-dying of grey wires since they're so l
})
end
end
+
+for _,a in ipairs({{"skyblue","azure"}, {"redviolet","rose"}, {"aqua","spring"}}) do
+ for _,s in ipairs({"_", "_corner_", "_tjunction_"}) do
+ minetest.register_alias("mesecons_extrawires:insulated"..s..a[1].."_off",
+ "mesecons_extrawires:insulated"..s..a[2].."_off")
+ minetest.register_alias("mesecons_extrawires:insulated"..s..a[1].."_on",
+ "mesecons_extrawires:insulated"..s..a[2].."_on")
+ end
+end