From 170d3e09c55cf982a6ed180b4bdf755cabbe864c Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz <vanessaezekowitz@gmail.com> Date: Thu, 13 Apr 2017 00:50:50 +0200 Subject: [PATCH] clean-up battery box images, make more consistent added tube or cable entry overlays as appropriate. deleted a couple of obsolete textures --- technic/machines/register/battery_box.lua | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 7238d6d..bb9c29d 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -3,6 +3,7 @@ local S = technic.getter local tube_entry = "^pipeworks_tube_connection_metallic.png" +local cable_entry = "^technic_cable_connection_overlay.png" local fs_helpers = pipeworks.fs_helpers @@ -208,20 +209,25 @@ groups.tubedevice_receiver = 1 end + local front_tex = "technic_"..ltier.."_battery_box_front.png^technic_power_meter"..i..".png" local tentry = tube_entry + local bentry = tube_entry + if ltier == "lv" then + front_tex = "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png" tentry = "" + bentry = cable_entry end minetest.register_node("technic:"..ltier.."_battery_box"..i, { description = S("%s Battery Box"):format(tier), tiles = { "technic_"..ltier.."_battery_box_top.png"..tentry, - "technic_"..ltier.."_battery_box_bottom.png"..tentry, - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png", - "technic_"..ltier.."_battery_box_side.png^technic_power_meter"..i..".png"}, + "technic_"..ltier.."_battery_box_bottom.png"..bentry, + "technic_"..ltier.."_battery_box_side.png"..tentry, + "technic_"..ltier.."_battery_box_side.png"..tentry, + "technic_"..ltier.."_battery_box_side.png"..tentry, + front_tex}, groups = groups, connect_sides = {"bottom"}, tube = data.tube and tube or nil, -- Gitblit v1.8.0