From 808049bb2f6ed472fe3f0d93231a2336c1691141 Mon Sep 17 00:00:00 2001
From: Maciej Kasatkin <mk@realbadangel.pl>
Date: Fri, 02 Nov 2012 00:57:30 +0100
Subject: [PATCH] Added MV solar panels and battery boxes

---
 init.lua |   71 ++++++++++++++++++++++-------------
 1 files changed, 45 insertions(+), 26 deletions(-)

diff --git a/init.lua b/init.lua
index 4197e58..8933a11 100644
--- a/init.lua
+++ b/init.lua
@@ -1,4 +1,4 @@
--- Minetest 0.4.2 rc1: technic
+-- Minetest 0.4.3 : technic
 
 minetest.register_alias("rebar", "technic:rebar")
 minetest.register_alias("concrete", "technic:concrete")
@@ -14,32 +14,51 @@
 minetest.register_alias("mithril_chest", "technic:mithril_chest")
 minetest.register_alias("mithril_locked_chest", "technic:mithril_locked_chest")
 
-dofile(minetest.get_modpath("technic").."/concrete.lua")
-dofile(minetest.get_modpath("technic").."/iron_chest.lua")
-dofile(minetest.get_modpath("technic").."/copper_chest.lua")
-dofile(minetest.get_modpath("technic").."/silver_chest.lua")
-dofile(minetest.get_modpath("technic").."/gold_chest.lua")
-dofile(minetest.get_modpath("technic").."/mithril_chest.lua")
-dofile(minetest.get_modpath("technic").."/electric_furnace.lua")
-dofile(minetest.get_modpath("technic").."/battery_box.lua")
-dofile(minetest.get_modpath("technic").."/wires.lua")
-dofile(minetest.get_modpath("technic").."/dyes.lua")
-dofile(minetest.get_modpath("technic").."/ores.lua")
 
-dofile(minetest.get_modpath("technic").."/tool_workshop.lua")
-dofile(minetest.get_modpath("technic").."/music_player.lua")
-dofile(minetest.get_modpath("technic").."/grinder.lua")
-dofile(minetest.get_modpath("technic").."/mining_laser_mk1.lua")
---dofile(minetest.get_modpath("technic").."/project_table.lua")
---dofile(minetest.get_modpath("technic").."/injector.lua")
-dofile(minetest.get_modpath("technic").."/generator.lua")
-dofile(minetest.get_modpath("technic").."/solar_panel.lua")
-dofile(minetest.get_modpath("technic").."/geothermal.lua")
-dofile(minetest.get_modpath("technic").."/water_mill.lua")
-dofile(minetest.get_modpath("technic").."/alloy_furnace.lua")
-dofile(minetest.get_modpath("technic").."/items.lua")
-dofile(minetest.get_modpath("technic").."/mining_drill.lua")
-dofile(minetest.get_modpath("technic").."/screwdriver.lua")
+modpath=minetest.get_modpath("technic")
+
+--Read technic config file
+dofile(modpath.."/config.lua")
+
+dofile(modpath.."/concrete.lua")
+dofile(modpath.."/iron_chest.lua")
+dofile(modpath.."/copper_chest.lua")
+dofile(modpath.."/silver_chest.lua")
+dofile(modpath.."/gold_chest.lua")
+dofile(modpath.."/mithril_chest.lua")
+dofile(modpath.."/electric_furnace.lua")
+dofile(modpath.."/battery_box.lua")
+dofile(modpath.."/wires.lua")
+dofile(modpath.."/wires_mv.lua")
+dofile(modpath.."/ores.lua")
+dofile(modpath.."/tool_workshop.lua")
+dofile(modpath.."/music_player.lua")
+dofile(modpath.."/grinder.lua")
+dofile(modpath.."/mining_laser_mk1.lua")
+dofile(modpath.."/injector.lua")
+dofile(modpath.."/generator.lua")
+dofile(modpath.."/solar_panel.lua")
+dofile(modpath.."/geothermal.lua")
+dofile(modpath.."/water_mill.lua")
+dofile(modpath.."/alloy_furnace.lua")
+dofile(modpath.."/items.lua")
+dofile(modpath.."/mining_drill.lua")
+dofile(modpath.."/screwdriver.lua")
+dofile(modpath.."/sonic_screwdriver.lua")
+dofile(modpath.."/node_breaker.lua")
+dofile(modpath.."/deployer.lua")
+dofile(modpath.."/constructor.lua")
+dofile(modpath.."/tree_tap.lua")
+dofile(modpath.."/flashlight.lua")
+dofile(modpath.."/cans.lua")
+dofile(modpath.."/chainsaw.lua")
+
+if enable_item_drop	then dofile(modpath.."/item_drop.lua") end
+if enable_item_pickup   then dofile(modpath.."/item_pickup.lua") end
+
+--MV machines
+dofile(modpath.."/solar_panel_mv.lua")
+dofile(modpath.."/battery_box_mv.lua")
 
 
 function has_locked_chest_privilege(meta, player)

--
Gitblit v1.8.0