Add carts_quests

This commit is contained in:
sys4-fr 2016-07-10 12:37:18 +02:00
parent 7f8a513160
commit 1c072aab2c
6 changed files with 86 additions and 0 deletions

View File

@ -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.

Binary file not shown.

5
carts_quests/depends.txt Normal file
View File

@ -0,0 +1,5 @@
minetest_quests
carts?
boost_cart?
moreores_quests?
intllib?

56
carts_quests/init.lua Normal file
View File

@ -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

View File

@ -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

View File

@ -0,0 +1,9 @@
### Quests Title ###
Rail Installer =
### Items Name ###
carts:brakerail =
carts:cart =
carts:powerrail =