From 3bc6cad6710ad76f8a829a575f03fea00c589134 Mon Sep 17 00:00:00 2001 From: RealBadAngel <mk@realbadangel.pl> Date: Wed, 17 Jul 2013 19:14:01 +0200 Subject: [PATCH] Remove lv, mv, and hv tiers from power tools. Theyre already tiered with Mk1-3 (at least drill is, more in the future). Tools can be considered as designed for different tiers of circuits thx to their power needs. For example Mk3 will require ages to load in LV batbox. Batboxes load tools timining: LV standard (1000EU), MV 4x faster (4000EU), HV 16x faster (16000EU) Also since 1EU is the same in any circuit it is possible to move energy from one to another with portable devices like crystals. --- technic/register_machine_and_tool.lua | 21 +++++++-------------- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/technic/register_machine_and_tool.lua b/technic/register_machine_and_tool.lua index b7d039a..6ea361d 100644 --- a/technic/register_machine_and_tool.lua +++ b/technic/register_machine_and_tool.lua @@ -1,9 +1,15 @@ -- This file includes the functions and data structures for registering machines and tools for LV, MV, HV types. -- We use the technic namespace for these functions and data to avoid eventual conflict. +-- register power tools here +technic.power_tools = {} +technic.register_power_tool = function(craftitem,max_charge) + technic.power_tools[craftitem] = max_charge + end + -- register LV machines here technic.LV_machines = {} -technic.LV_power_tools = {} + technic.register_LV_machine = function(nodename,type) technic.LV_machines[nodename] = type end @@ -11,10 +17,6 @@ technic.unregister_LV_machine = function(nodename,type) technic.LV_machines[nodename] = nil end - -technic.register_LV_power_tool = function(craftitem,max_charge) - technic.LV_power_tools[craftitem] = max_charge - end -- register MV machines here technic.MV_machines = {} @@ -27,10 +29,6 @@ technic.MV_machines[nodename] = nil end -technic.register_MV_power_tool = function(craftitem,max_charge) - technic.MV_power_tools[craftitem] = max_charge - end - -- register HV machines here technic.HV_machines = {} technic.HV_power_tools = {} @@ -41,11 +39,6 @@ technic.unregister_HV_machine = function(nodename) technic.HV_machines[nodename] = nil end - -technic.register_HV_power_tool = function(craftitem,max_charge) - technic.HV_power_tools[craftitem] = max_charge - end - -- Utility functions. Not sure exactly what they do.. water.lua uses the two first. function technic.get_RE_item_load (load1,max_load) -- Gitblit v1.8.0