From 7cfb3874a381d5923611242b4cf7756d86049def Mon Sep 17 00:00:00 2001
From: Kevin Zheng <kevinz5000@gmail.com>
Date: Wed, 06 Aug 2014 19:08:48 +0200
Subject: [PATCH] Evenly distribute charge across multiple batteries

---
 technic/machines/LV/battery_box.lua |   35 ++++-------------------------------
 1 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/technic/machines/LV/battery_box.lua b/technic/machines/LV/battery_box.lua
index a3f5171..429bcd6 100644
--- a/technic/machines/LV/battery_box.lua
+++ b/technic/machines/LV/battery_box.lua
@@ -1,43 +1,16 @@
--- LV Battery box and some other nodes...
-
-technic.register_power_tool("technic:battery", 10000)
-technic.register_power_tool("technic:red_energy_crystal", 100000)
-technic.register_power_tool("technic:green_energy_crystal", 250000)
-technic.register_power_tool("technic:blue_energy_crystal", 500000)
-
-minetest.register_craft({
-	output = 'technic:battery',
-	recipe = {
-		{'group:wood', 'default:copper_ingot', 'group:wood'},
-		{'group:wood', 'moreores:tin_ingot',   'group:wood'},
-		{'group:wood', 'default:copper_ingot', 'group:wood'},
-	}
-})
-
-minetest.register_tool("technic:battery", {
-	description = "RE Battery",
-	inventory_image = "technic_battery.png",
-	tool_capabilities = {
-		charge = 0,
-		max_drop_level = 0,
-		groupcaps = {
-			fleshy = {times={}, uses=10000, maxlevel=0}
-		}
-	}
-})
 
 minetest.register_craft({
 	output = 'technic:lv_battery_box0',
 	recipe = {
-		{'technic:battery',     'group:wood',           'technic:battery'},
-		{'technic:battery',     'default:copper_ingot', 'technic:battery'},
-		{'default:steel_ingot', 'default:steel_ingot',  'default:steel_ingot'},
+		{'group:wood',              'group:wood',              'group:wood'},
+		{'technic:battery',         'technic:machine_casing',  'technic:battery'},
+		{'technic:battery',         'technic:lv_cable0',       'technic:battery'},
 	}
 })
 
 technic.register_battery_box({
 	tier           = "LV",
-	max_charge     = 50000,
+	max_charge     = 40000,
 	charge_rate    = 1000,
 	discharge_rate = 4000,
 	charge_step    = 500,

--
Gitblit v1.8.0