Add 3d_armor(_stand) and shields quests
This commit is contained in:
parent
761a3420cd
commit
d4dcdd2726
150
3d_armor_quests/3d_armor.lua
Normal file
150
3d_armor_quests/3d_armor.lua
Normal file
@ -0,0 +1,150 @@
|
||||
-- 3d_armor Quests
|
||||
-- By Sys4
|
||||
|
||||
-- This mod add quests based on 3d_armor and shields mod
|
||||
|
||||
if not minetest.get_modpath("sys4_quests")
|
||||
and not minetest.get_modpath("3d_armor") then
|
||||
return
|
||||
end
|
||||
|
||||
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 3d_armor mod ----------
|
||||
local mod = "3d_armor"
|
||||
local quests = sys4_quests.initQuests(mod, S)
|
||||
|
||||
----- Quests with type="dig" -----
|
||||
local t = "dig"
|
||||
|
||||
-- cactus_digger
|
||||
ins(quests, {
|
||||
'cactus_digger', "Cactus Digger", nil, {'default:cactus'}, 4, {mod..':boots_cactus'}, nil, type = t, custom_level = true
|
||||
})
|
||||
|
||||
-- cactus_protection
|
||||
ins(quests, {
|
||||
'cactus_protection', "Cactus Protection", nil, {"default:cactus"}, 1, {mod..":helmet_cactus"}, "cactus_digger", type = t
|
||||
})
|
||||
|
||||
-- cactus_protection_lover
|
||||
ins(quests, {
|
||||
'cactus_protection_lover', "Cactus Protection Lover", nil, {"default:cactus"}, 1, {mod..":leggings_cactus"}, "cactus_protection", type = t
|
||||
})
|
||||
|
||||
-- cactus_protection_pro
|
||||
ins(quests, {
|
||||
'cactus_protection_pro', "Cactus Protection Pro", nil, {"default:cactus"}, 1, {mod..":chestplate_cactus"}, "cactus_protection_lover", type = t
|
||||
})
|
||||
|
||||
-- steel_protection
|
||||
ins(quests, {
|
||||
'steel_protection', "Steel Protection", nil, {"default:stone_with_iron"}, 1, {mod..":helmet_steel"}, "sword_crafter_lover", type = t
|
||||
})
|
||||
|
||||
-- steel_protection_lover
|
||||
ins(quests, {
|
||||
'steel_protection_lover', "Steel Protection Lover", nil, {"default:stone_with_iron"}, 1, {mod..":leggings_steel"}, "steel_protection", type = t
|
||||
})
|
||||
|
||||
-- steel_protection_pro
|
||||
ins(quests, {
|
||||
'steel_protection_pro', "Steel Protection Pro", nil, {"default:stone_with_iron"}, 1, {mod..":chestplate_steel"}, "steel_protection_lover", type = t
|
||||
})
|
||||
|
||||
-- gold_protection
|
||||
ins(quests, {
|
||||
'gold_protection', "Gold Protection", nil, {"default:stone_with_gold"}, 1, {mod..":helmet_gold"}, "sword_crafter_expert", type = t
|
||||
})
|
||||
|
||||
-- gold_protection_lover
|
||||
ins(quests, {
|
||||
'gold_protection_lover', "Gold Protection Lover", nil, {"default:stone_with_gold"}, 1, {mod..":leggings_gold"}, "gold_protection", type = t
|
||||
})
|
||||
|
||||
-- gold_protection_pro
|
||||
ins(quests, {
|
||||
'gold_protection_pro', "Gold Protection Pro", nil, {"default:stone_with_gold"}, 1, {mod..":chestplate_gold"}, "gold_protection_lover", type = t
|
||||
})
|
||||
|
||||
-- diamond_protection
|
||||
ins(quests, {
|
||||
'diamond_protection', "Diamond Protection", nil, {"default:stone_with_diamond"}, 1, {mod..":helmet_diamond"}, "sword_crafter_master", type = t
|
||||
})
|
||||
|
||||
-- diamond_protection_lover
|
||||
ins(quests, {
|
||||
'diamond_protection_lover', "Diamond Protection Lover", nil, {"default:stone_with_diamond"}, 1, {mod..":leggings_diamond"}, "diamond_protection", type = t
|
||||
})
|
||||
|
||||
-- diamond_protection_pro
|
||||
ins(quests, {
|
||||
'diamond_protection_pro', "Diamond Protection Pro", nil, {"default:stone_with_diamond"}, 1, {mod..":chestplate_diamond"}, "diamond_protection_lover", type = t
|
||||
})
|
||||
|
||||
t = "craft"
|
||||
|
||||
-- sword_crafter
|
||||
ins(quests, {
|
||||
'sword_crafter', "Sword Crafter", nil, {"default:sword_wood"}, 2, {mod..":boots_wood"}, "wood_crafter_lover", type = t, custom_level = true
|
||||
})
|
||||
|
||||
-- wood_protection
|
||||
ins(quests, {
|
||||
'wood_protection', "Wood Protection", nil, {"default:wood", "default:junglewood", "default:pine_wood", "default:acacia_wood", "default:aspen_wood"}, 1, {mod..":helmet"}, "sword_crafter", type = t
|
||||
})
|
||||
|
||||
-- wood_protection_lover
|
||||
ins(quests, {
|
||||
'wood_protection_lover', "Wood Protection Lover", nil, {"default:wood", "default:junglewood", "default:pine_wood", "default:acacia_wood", "default:aspen_wood"}, 1, {mod..":leggings"}, "wood_protection", type = t
|
||||
})
|
||||
|
||||
-- wood_protection_pro
|
||||
ins(quests, {
|
||||
'wood_protection_pro', "Wood Protection Pro", nil, {"default:wood", "default:junglewood", "default:pine_wood", "default:acacia_wood", "default:aspen_wood"}, 1, {mod..":chestplate"}, "wood_protection_lover", type = t
|
||||
})
|
||||
|
||||
-- sword_crafter_lover
|
||||
ins(quests, {
|
||||
'sword_crafter_lover', "Sword Crafter Lover", nil, {"default:sword_steel"}, 2, {mod..":boots_steel"}, "iron_digger_lover", type = t, custom_level = true
|
||||
})
|
||||
|
||||
-- sword_crafter_pro
|
||||
ins(quests, {
|
||||
'sword_crafter_pro', "Sword Crafter Pro", nil, {"default:sword_bronze"}, 2, {mod..":boots_bronze"}, "bronze_crafter_lover", type = t, custom_level = true
|
||||
})
|
||||
|
||||
-- bronze_protection
|
||||
ins(quests, {
|
||||
'bronze_protection', "Bronze Protection", nil, {"default:bronze_ingot"}, 1, {mod..":helmet_bronze"}, "sword_crafter_pro", type = t
|
||||
})
|
||||
|
||||
-- bronze_protection_lover
|
||||
ins(quests, {
|
||||
'bronze_protection_lover', "Bronze Protection Lover", nil, {"default:bronze_ingot"}, 1, {mod..":leggings_bronze"}, "bronze_protection", type = t
|
||||
})
|
||||
|
||||
-- bronze_protection_pro
|
||||
ins(quests, {
|
||||
'bronze_protection_pro', "Bronze Protection Pro", nil, {"default:bronze_ingot"}, 1, {mod..":chestplate_bronze"}, "bronze_protection_lover", type = t
|
||||
})
|
||||
|
||||
-- sword_crafter_expert
|
||||
ins(quests, {
|
||||
'sword_crafter_expert', "Sword Crafter Expert", nil, {"default:sword_mese"}, 2, {mod..":boots_gold"}, "mese_digger_lover", type = t
|
||||
})
|
||||
|
||||
-- sword_crafter_master
|
||||
ins(quests, {
|
||||
'sword_crafter_master', "Sword Crafter Master", nil, {"default:sword_diamond"}, 2, {mod..":boots_diamond"}, "diamond_digger_lover", type = t
|
||||
})
|
||||
|
||||
sys4_quests.registerQuests()
|
BIN
3d_armor_quests/3d_armor_quests.dia
Normal file
BIN
3d_armor_quests/3d_armor_quests.dia
Normal file
Binary file not shown.
33
3d_armor_quests/3d_armor_stand.lua
Normal file
33
3d_armor_quests/3d_armor_stand.lua
Normal file
@ -0,0 +1,33 @@
|
||||
-- 3d_armor_stand Quests
|
||||
-- By Sys4
|
||||
|
||||
-- This mod add quests based on 3d_armor_stand mod
|
||||
|
||||
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 3d_armor_stand mod ----------
|
||||
local mod = "3d_armor_stand"
|
||||
local quests = sys4_quests.initQuests(mod, S)
|
||||
|
||||
----- Quests with type="dig" -----
|
||||
local t = "craft"
|
||||
|
||||
-- armor_stand
|
||||
ins(quests, {
|
||||
'armor_stand', "Unlock Armor Stand", nil, {"default:fence_wood", "default:fence_junglewood", "default:fence_acacia_wood", "default:fence_pine_wood", "default:fence_aspen_wood"}, 2, {mod..":armor_stand"}, {"wood_architect", "iron_digger_pro"}, type = t
|
||||
})
|
||||
|
||||
-- armor_stand_lover
|
||||
ins(quests, {
|
||||
'armor_stand_lover', "Armor Stand Crafter", nil, {mod..":armor_stand"}, 1, {mod..":locked_armor_stand"}, "armor_stand", type = t
|
||||
})
|
||||
|
||||
sys4_quests.registerQuests()
|
5
3d_armor_quests/depends.txt
Normal file
5
3d_armor_quests/depends.txt
Normal file
@ -0,0 +1,5 @@
|
||||
sys4_quests
|
||||
minetest_quests
|
||||
3d_armor
|
||||
shields?
|
||||
|
23
3d_armor_quests/init.lua
Normal file
23
3d_armor_quests/init.lua
Normal file
@ -0,0 +1,23 @@
|
||||
-- 3d_armor quests
|
||||
-- By Sys4
|
||||
|
||||
-- This mod add quests based on 3d_armor modpack
|
||||
|
||||
local mod_sys4_quests = minetest.get_modpath("sys4_quests")
|
||||
local mod_3d_armor = minetest.get_modpath("3d_armor")
|
||||
local mod_shields = minetest.get_modpath("shields")
|
||||
local mod_3d_armor_stand = minetest.get_modpath("3d_armor_stand")
|
||||
|
||||
if mod_sys4_quests and mod_3d_armor then
|
||||
local current_modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
dofile(current_modpath.."/3d_armor.lua")
|
||||
|
||||
if mod_shields then
|
||||
dofile(current_modpath.."/shields.lua")
|
||||
end
|
||||
|
||||
if mod_3d_armor_stand then
|
||||
dofile(current_modpath.."/3d_armor_stand.lua")
|
||||
end
|
||||
end
|
51
3d_armor_quests/locale/fr.txt
Normal file
51
3d_armor_quests/locale/fr.txt
Normal file
@ -0,0 +1,51 @@
|
||||
Cactus Digger = Coupe du cactus
|
||||
Sword Crafter = Fabrique des épées en Bois
|
||||
Sword Crafter Lover = Fabrique des épées en Acier
|
||||
Sword Crafter Pro = Fabrique des épées en Bronze
|
||||
Ethereal Sword Crafter = Fabrique des épées en Crystal
|
||||
|
||||
3d_armor:boots_cactus = Bottes en cactus
|
||||
3d_armor:chestplate_cactus = Cuirasse en cactus
|
||||
3d_armor:helmet_cactus = Casque en cactus
|
||||
3d_armor:leggings_cactus = Jambières en cactus
|
||||
|
||||
3d_armor:boots_wood = Bottes en bois
|
||||
3d_armor:chestplate_wood = Cuirasse en bois
|
||||
3d_armor:helmet_wood = Casque en bois
|
||||
3d_armor:leggings_wood = Jambières en bois
|
||||
|
||||
3d_armor:boots_steel = Bottes en Acier
|
||||
3d_armor:chestplate_steel = Cuirasse en Acier
|
||||
3d_armor:helmet_steel = Casque en Acier
|
||||
3d_armor:leggings_steel = Jambières en Acier
|
||||
|
||||
3d_armor:boots_bronze = Bottes en Bronze
|
||||
3d_armor:chestplate_bronze = Cuirasse en Bronze
|
||||
3d_armor:helmet_bronze = Casque en Bronze
|
||||
3d_armor:leggings_bronze = Jambières en Bronze
|
||||
|
||||
3d_armor:boots_gold = Bottes en Or
|
||||
3d_armor:chestplate_gold = Cuirasse en Or
|
||||
3d_armor:helmet_gold = Casque en Or
|
||||
3d_armor:leggings_gold = Jambières en Or
|
||||
|
||||
3d_armor:boots_diamond = Bottes en Diamant
|
||||
3d_armor:chestplate_diamond = Cuirasse en Diamant
|
||||
3d_armor:helmet_diamond = Casque en Diamant
|
||||
3d_armor:leggings_diamond = Jambières en Diamant
|
||||
|
||||
3d_armor:boots_crystal = Bottes en crystal
|
||||
3d_armor:chestplate_crystal = Cuirasse en crystal
|
||||
3d_armor:helmet_crystal = Casque en crystal
|
||||
3d_armor:leggings_crystal = Jambières en crystal
|
||||
|
||||
shields:shield_wood = Bouclier en bois
|
||||
shields:shield_enhanced_wood = Bouclier en bois amélioré
|
||||
shields:shield_cactus = Bouclier en cactus
|
||||
shields:shield_enhanced_cactus = Bouclier en cactus amélioré
|
||||
shields:shield_steel = Bouclier en acier
|
||||
shields:shield_bronze = Bouclier en bronze
|
||||
shields:shield_gold = Bouclier en or
|
||||
shields:shield_diamond = Bouclier en diamant
|
||||
shields:shield_crystal = Bouclier en crystal
|
||||
|
50
3d_armor_quests/locale/template.txt
Normal file
50
3d_armor_quests/locale/template.txt
Normal file
@ -0,0 +1,50 @@
|
||||
Cactus Digger =
|
||||
Sword Crafter =
|
||||
Sword Crafter Lover =
|
||||
Sword Crafter Pro =
|
||||
Ethereal Sword Crafter =
|
||||
|
||||
3d_armor:boots_cactus =
|
||||
3d_armor:chestplate_cactus =
|
||||
3d_armor:helmet_cactus =
|
||||
3d_armor:leggings_cactus =
|
||||
|
||||
3d_armor:boots_wood =
|
||||
3d_armor:chestplate_wood =
|
||||
3d_armor:helmet_wood =
|
||||
3d_armor:leggings_wood =
|
||||
|
||||
3d_armor:boots_steel =
|
||||
3d_armor:chestplate_steel =
|
||||
3d_armor:helmet_steel =
|
||||
3d_armor:leggings_steel =
|
||||
|
||||
3d_armor:boots_bronze =
|
||||
3d_armor:chestplate_bronze =
|
||||
3d_armor:helmet_bronze =
|
||||
3d_armor:leggings_bronze =
|
||||
|
||||
3d_armor:boots_gold =
|
||||
3d_armor:chestplate_gold =
|
||||
3d_armor:helmet_gold =
|
||||
3d_armor:leggings_gold =
|
||||
|
||||
3d_armor:boots_diamond =
|
||||
3d_armor:chestplate_diamond =
|
||||
3d_armor:helmet_diamond =
|
||||
3d_armor:leggings_diamond =
|
||||
|
||||
3d_armor:boots_crystal =
|
||||
3d_armor:chestplate_crystal =
|
||||
3d_armor:helmet_crystal =
|
||||
3d_armor:leggings_crystal =
|
||||
|
||||
shields:shield_wood =
|
||||
shields:shield_enhanced_wood =
|
||||
shields:shield_cactus =
|
||||
shields:shield_enhanced_cactus =
|
||||
shields:shield_steel =
|
||||
shields:shield_bronze =
|
||||
shields:shield_gold =
|
||||
shields:shield_diamond =
|
||||
shields:shield_crystal =
|
45
3d_armor_quests/shields.lua
Normal file
45
3d_armor_quests/shields.lua
Normal file
@ -0,0 +1,45 @@
|
||||
-- shields Quests
|
||||
-- By Sys4
|
||||
|
||||
-- This mod add quests based on shields and shields mod
|
||||
|
||||
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 shields mod ----------
|
||||
local mod = "shields"
|
||||
local quests = sys4_quests.initQuests(mod, S)
|
||||
|
||||
----- Quests with type="dig" -----
|
||||
local t = "dig"
|
||||
|
||||
up('cactus_protection_lover', nil, {mod..":shield_cactus"})
|
||||
|
||||
up('wood_protection_lover', nil, {mod..":shield_wood"})
|
||||
|
||||
up('steel_protection_lover', nil, {mod..":shield_steel"})
|
||||
|
||||
up('bronze_protection_lover', nil, {mod..":shield_bronze"})
|
||||
|
||||
up('gold_protection_lover', nil, {mod..":shield_gold"})
|
||||
|
||||
up('diamond_protection_lover', nil, {mod..":shield_diamond"})
|
||||
|
||||
-- enhance_cactus_protection
|
||||
ins(quests, {
|
||||
'enhance_cactus_protection', "Enhance Cactus Protection", nil, {"default:stone_with_iron"}, 2, {mod..":shield_enhanced_cactus"}, {"cactus_protection_lover", "furnace_crafter"}, type = t
|
||||
})
|
||||
|
||||
-- enhance_wood_protection
|
||||
ins(quests, {
|
||||
'enhance_wood_protection', "Enhance Wood Protection", nil, {"default:stone_with_iron"}, 2, {mod..":shield_enhanced_wood"}, {"wood_protection_lover", "furnace_crafter"}, type = t
|
||||
})
|
||||
|
||||
sys4_quests.registerQuests()
|
Binary file not shown.
@ -22,7 +22,7 @@ minetest.register_node("sys4_quests:waste",
|
||||
sys4_quests = {}
|
||||
|
||||
local lastQuestIndex = 0
|
||||
local level = 5
|
||||
local level = 10
|
||||
|
||||
function sys4_quests.initQuests(mod, intllib)
|
||||
if not intllib or intllib == nil then
|
||||
|
Loading…
x
Reference in New Issue
Block a user