added cooked
parent
aee997cfc2
commit
86d9ceda83
6
init.lua
6
init.lua
|
@ -1,5 +1,5 @@
|
||||||
-- VARIABLES
|
-- VARIABLES
|
||||||
new_campfire_cooking = 1; -- nil - can`t cooked, 1 - can cooked
|
new_campfire_cooking = 1; -- nil - not cooked, 1 - cooked
|
||||||
new_campfire_limit = 1; -- nil - unlimited campfire, 1 - limited
|
new_campfire_limit = 1; -- nil - unlimited campfire, 1 - limited
|
||||||
new_campfire_ttl = 30; -- Time in sec
|
new_campfire_ttl = 30; -- Time in sec
|
||||||
new_campfire_stick_time = new_campfire_ttl/2; -- How long does the stick increase. In sec.
|
new_campfire_stick_time = new_campfire_ttl/2; -- How long does the stick increase. In sec.
|
||||||
|
@ -66,7 +66,7 @@ local function fire_particles_on(pos) -- 3 layers of fire
|
||||||
maxacc = {x= 0, y= 1, z= 0},
|
maxacc = {x= 0, y= 1, z= 0},
|
||||||
minexptime = 0.6,
|
minexptime = 0.6,
|
||||||
maxexptime = 0.8,
|
maxexptime = 0.8,
|
||||||
minsize = 1,
|
minsize = 2,
|
||||||
maxsize = 4,
|
maxsize = 4,
|
||||||
collisiondetection = true,
|
collisiondetection = true,
|
||||||
vertical = true,
|
vertical = true,
|
||||||
|
@ -355,7 +355,7 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
|
|
||||||
if new_campfire_cooking then
|
if new_campfire_cooking then
|
||||||
if meta:get_int('cooked_cur_time') < meta:get_int('cooked_time') then
|
if meta:get_int('cooked_cur_time') <= meta:get_int('cooked_time') then
|
||||||
meta:set_int('cooked_cur_time', meta:get_int('cooked_cur_time') + 1);
|
meta:set_int('cooked_cur_time', meta:get_int('cooked_cur_time') + 1);
|
||||||
else
|
else
|
||||||
meta:set_int('cooked_time', 0);
|
meta:set_int('cooked_time', 0);
|
||||||
|
|
|
@ -23,7 +23,7 @@ msgstr "Горящий костер"
|
||||||
|
|
||||||
#: init.lua:129
|
#: init.lua:129
|
||||||
msgid "Cooking"
|
msgid "Cooking"
|
||||||
msgstr "Приготовление еды"
|
msgstr "Приготовление"
|
||||||
|
|
||||||
#: init.lua:193 init.lua:211
|
#: init.lua:193 init.lua:211
|
||||||
msgid "Fireplace"
|
msgid "Fireplace"
|
||||||
|
|
|
@ -23,7 +23,7 @@ msgstr "Палаюче багаття"
|
||||||
|
|
||||||
#: init.lua:129
|
#: init.lua:129
|
||||||
msgid "Cooking"
|
msgid "Cooking"
|
||||||
msgstr "Готування їжи"
|
msgstr "Готування"
|
||||||
|
|
||||||
#: init.lua:193 init.lua:211
|
#: init.lua:193 init.lua:211
|
||||||
msgid "Fireplace"
|
msgid "Fireplace"
|
||||||
|
|
Loading…
Reference in New Issue