-machines_minstep now defines smallest allowable activation time
-battery: furnace energy rework ( 0.25 of each acceleration, 0.5 for initial burning time add)
This commit is contained in:
parent
3d02ab8523
commit
09bcc9787f
@ -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 = {
|
||||
|
@ -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-t0<machines_minstep then -- to prevent too quick furnace acceleration, punishment is cooking reset
|
||||
fmeta:set_float("src_time",0); return
|
||||
end
|
||||
meta:set_int("ftime",t1);
|
||||
@ -143,7 +144,7 @@ minetest.register_node("basic_machines:battery", {
|
||||
|
||||
--if fuel_time>4 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user