diff --git a/mover.lua b/mover.lua index a94e866..27f9c4c 100644 --- a/mover.lua +++ b/mover.lua @@ -7,11 +7,12 @@ -- *** SETTINGS *** -- local machines_timer = 5 -- main timestep +local machines_minstep = 1 -- minimal allowed activation timestep local max_range = 10; -- machines normal range of operation local machines_operations = 10; -- 1 coal will provide 10 mover basic operations ( moving dirt 1 block distance) -local machines_TTL = 16; -- time to live for signals +local machines_TTL = 16; -- time to live for signals, how many hops before signal dissipates basic_machines.version = "04/15/2016a"; -basic_machines.clockgen = 1; -- if 0 clockgen is disabled +basic_machines.clockgen = 1; -- if 0 all background continuously running activity (clockgen/keypad) repeating is disabled -- how hard it is to move blocks, default factor 1, note fuel cost is this multiplied by distance and divided by machine_operations.. basic_machines.hardness = { diff --git a/technic_power.lua b/technic_power.lua index b43888f..7bef89b 100644 --- a/technic_power.lua +++ b/technic_power.lua @@ -1,4 +1,5 @@ local machines_timer=5 +local machines_minstep = 1 -- BATTERY @@ -135,7 +136,7 @@ minetest.register_node("basic_machines:battery", { local t0 = meta:get_int("ftime"); -- furnace time local t1 = minetest.get_gametime(); - if t1-t0<1 then -- to prevent too quick furnace acceleration, punishment is cooking reset + if t1-t04 then -- accelerated cooking local src_time = fmeta:get_float("src_time") or 0 - energy = energy - 0.5; -- use energy to accelerate burning + energy = energy - 0.25; -- use energy to accelerate burning fmeta:set_float("src_time",src_time+5); --end