2020-12-21 07:39:29 -08:00
|
|
|
--[[
|
2022-06-11 16:12:07 -07:00
|
|
|
Every tasks should be in it's own file. If there are multiple tasks that are all varients
|
|
|
|
of the same tasks it's okay to put them all the same file to allow for re-using local functions.
|
2022-08-29 19:05:26 -07:00
|
|
|
Node's with infotexts should have two varients;
|
|
|
|
info_repair : This is used when the task is available to complete.
|
|
|
|
info_working : This is used when the task is completed and is waiting to become available.
|
2020-12-21 07:39:29 -08:00
|
|
|
]]
|
2020-12-12 19:34:15 -08:00
|
|
|
|
2020-12-21 07:39:29 -08:00
|
|
|
tasks = {}
|
2021-09-21 05:49:04 -07:00
|
|
|
tasks.player_config = {}
|
2020-12-12 19:34:15 -08:00
|
|
|
|
2021-12-20 17:30:20 -08:00
|
|
|
--Helper functions/tools
|
2020-12-21 07:39:29 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/functions.lua')
|
2021-09-21 05:49:04 -07:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/configurator.lua')
|
2021-12-20 17:30:20 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/items.lua')
|
|
|
|
dofile(minetest.get_modpath('tasks')..'/storage_locker.lua')
|
2020-12-12 19:34:15 -08:00
|
|
|
|
2021-12-20 17:30:20 -08:00
|
|
|
--Actual tasks
|
2021-12-31 20:22:49 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/campfire.lua')
|
2020-12-27 09:19:36 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/code.lua')
|
2021-01-10 17:17:27 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/engine_0.lua')
|
|
|
|
dofile(minetest.get_modpath('tasks')..'/engine_1.lua')
|
2020-12-21 07:39:29 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/example.lua')
|
2022-06-11 16:12:07 -07:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/food_crates.lua')
|
2022-01-08 16:32:03 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/forcefield_gen.lua')
|
2021-11-26 12:35:53 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/match.lua')
|
2022-06-11 16:12:07 -07:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/microscope.lua')
|
2022-03-05 13:10:39 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/printing_press.lua')
|
2022-01-08 16:32:03 -08:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/radio_dish.lua')
|
2021-04-01 07:47:59 -07:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/rubbish.lua')
|
2021-10-22 18:30:22 -07:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/smoke_detector.lua')
|
2021-07-14 18:15:09 -07:00
|
|
|
dofile(minetest.get_modpath('tasks')..'/transformer.lua')
|