fully fix the nuclear reactors

reactors only work with mv wire and battery boxes

todo: add textures and real craft recipe

upon c55's knowledge, best not let darkrose use one
This commit is contained in:
Jordan Snelling 2012-11-08 19:18:46 +00:00
parent 1226002ed6
commit 36979ebffd
3 changed files with 4 additions and 4 deletions

View File

@ -394,7 +394,5 @@ if minetest.env:get_node(pos1).name == "technic:alloy_furnace_active" then new_
if minetest.env:get_node(pos1).name == "technic:tool_workshop" then new_node_added=add_new_cable_node(RE_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:music_player" then new_node_added=add_new_cable_node(RE_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:grinder" then new_node_added=add_new_cable_node(RE_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:reactor" then new_node_added=add_new_cable_node(RE_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:reactor_active" then new_node_added=add_new_cable_node(RE_nodes,pos1) end
end

View File

@ -207,7 +207,7 @@ minetest.register_abm({
MV_nodes[1].z=pos1.z
MV_nodes[1].visited=false
print(dump(PR_nodes))
table_index=1
repeat
check_MV_node (PR_nodes,RE_nodes,MV_nodes,table_index)
@ -318,5 +318,7 @@ function check_MV_node_subp (PR_nodes,RE_nodes,MV_nodes,pos1)
meta = minetest.env:get_meta(pos1)
if meta:get_float("mv_cablelike")==1 then new_node_added=add_new_MVcable_node(MV_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:solar_panel_mv" then new_node_added=add_new_MVcable_node(PR_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:reactor_active" then new_node_added=add_new_MVcable_node(PR_nodes,pos1) end
if minetest.env:get_node(pos1).name == "technic:reactor" then new_node_added=add_new_MVcable_node(PR_nodes,pos1) end
end

View File

@ -95,7 +95,7 @@ minetest.register_abm({
local burn_time= meta:get_float("burn_time")
local charge= meta:get_float("internal_EU_buffer")
local max_charge= meta:get_float("internal_EU_buffer_size")
local burn_charge=200
local burn_charge=2000
if burn_time>0 then
if charge+burn_charge>max_charge then