Traitor/mods/tasks/init.lua

33 lines
1.5 KiB
Lua
Raw Normal View History

2020-12-21 07:39:29 -08: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.
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 = {}
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')
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')
dofile(minetest.get_modpath('tasks')..'/food_crates.lua')
dofile(minetest.get_modpath('tasks')..'/forcefield_gen.lua')
2021-11-26 12:35:53 -08:00
dofile(minetest.get_modpath('tasks')..'/match.lua')
dofile(minetest.get_modpath('tasks')..'/microscope.lua')
2022-03-05 13:10:39 -08:00
dofile(minetest.get_modpath('tasks')..'/printing_press.lua')
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')