diff --git a/README.md b/README.md index 694caa7..dd312a9 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,13 @@ Download the source code and place it in a new folder named "sys4_quests" into t moreores (by Calinou), intllib? +* carts_quests + + minetest_quests, + carts (by PilzAdam) or boost_cart (by SmallJoker) + moreores_quests? + intllib? + ##CONFIGURATION : * You can change the level of difficulty by editing the local variable "level" in sys4_quests/init.lua" file. * By default the level is 12 but for an easier gameplay you can set it down to 1. Or above 12 if you want a more difficult gameplay. diff --git a/carts_quests/carts_quests.dia b/carts_quests/carts_quests.dia new file mode 100644 index 0000000..bfe16bd Binary files /dev/null and b/carts_quests/carts_quests.dia differ diff --git a/carts_quests/depends.txt b/carts_quests/depends.txt new file mode 100644 index 0000000..6e96bf2 --- /dev/null +++ b/carts_quests/depends.txt @@ -0,0 +1,5 @@ +minetest_quests +carts? +boost_cart? +moreores_quests? +intllib? diff --git a/carts_quests/init.lua b/carts_quests/init.lua new file mode 100644 index 0000000..b985d90 --- /dev/null +++ b/carts_quests/init.lua @@ -0,0 +1,56 @@ +-- carts Quests +-- By Sys4 + +-- This mod add quests based on carts mod + +if minetest.get_modpath("minetest_quests") and + minetest.get_modpath("carts") or +minetest.get_modpath("boost_cart") then + + local S + if minetest.get_modpath("intllib") then + S = intllib.Getter() + else + S = function(s) return s end + end + + local ins = table.insert + local up = sys4_quests.updateQuest + + ---------- Quests for carts mod ---------- + local mod = "carts" + local quests = sys4_quests.initQuests(mod, S) + + ----- Quests Groups ----- + local metal = "Metal Age" + + -- Update default quests + up('mese_digger', nil, {mod..":powerrail"}) + + ----- Quests with type="dig" ----- + local t = "place" + + if minetest.get_modpath("moreores_quests") then + ins(quests, { + 'rail_installer', "Rail Installer", nil, {"default:rail", "moreores:copper_rail"}, 24, {mod..":cart", mod..":brakerail"}, "iron_digger_expert|unlock_copper_rail", type = t, custom_level = true, group = metal + }) + elseif minetest.get_modpath("boost_cart") then + -- unlock_copper_rail + ins(quests, { + 'unlock_copper_rail', "Unlock Copper Rail", nil, {"default:stone_with_copper"}, 6, {mod..":copperrail"}, nil, type = t, group = metal + }) + + ins(quests, { + 'rail_installer', "Rail Installer", nil, {"default:rail", mod..":copperrail"}, 24, {mod..":cart", mod..":brakerail"}, "iron_digger_expert|unlock_copper_rail", type = t, custom_level = true, group = metal + }) + + else + + ins(quests, { + 'rail_installer', "Rail Installer", nil, {"default:rail"}, 24, {mod..":cart", mod..":brakerail"}, "iron_digger_expert", type = t, custom_level = true, group = metal + }) + end + + sys4_quests.registerQuests() + +end diff --git a/carts_quests/locale/fr.txt b/carts_quests/locale/fr.txt new file mode 100644 index 0000000..3d98042 --- /dev/null +++ b/carts_quests/locale/fr.txt @@ -0,0 +1,9 @@ +### Quests Title ### + +Rail Installer = Poseur de rails + +### Items Name ### + +carts:brakerail = Rails ralentisseurs +carts:cart = Chariots +carts:powerrail = Rails accelérateurs diff --git a/carts_quests/locale/template.txt b/carts_quests/locale/template.txt new file mode 100644 index 0000000..87bce89 --- /dev/null +++ b/carts_quests/locale/template.txt @@ -0,0 +1,9 @@ +### Quests Title ### + +Rail Installer = + +### Items Name ### + +carts:brakerail = +carts:cart = +carts:powerrail =