nalc/nalc_trm/init.lua
sys4-fr 28c528cd26 Ajout de nouveaux groupes et items
- Renommage d'anciens groupes en français
- Modification d'anciennes valeurs
2018-12-23 13:47:21 +01:00

110 lines
7.8 KiB
Lua

-- Groupe "armes"
local max_wear = 65535
local min_wear = 0
treasurer.register_treasure("default:sword_wood", 0.0411, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("default:sword_stone", 0.2110, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("default:sword_steel", 0.0374, 3, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("default:sword_bronze", 0.0175, 3, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("default:sword_mese", 0.0066, 3, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("default:sword_diamond", 0.0034, 4, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("moreores:sword_silver", 0.0129, 3, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("moreores:sword_mithril", 0.0034, 6, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("nalc:sword_gold", 0.0066, 3, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("nalc:sword_nyan", 0.0034, 4, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("mobs:dungeon_master_sword", 0.0001, 10, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:bow_royal", 0.0051, 7, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:bow_steel", 0.0121, 5, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:arbalest_auto", 0.0092, 5, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:crossbow", 0.0134, 4, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:bow_wood", 0.0260, 4, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:bow_composite", 0.0123, 4, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:arbalest", 0.0164, 4, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:longbow", 0.0124, 3, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("spears:spear_stone", 0.1556, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("spears:spear_steel", 0.0574, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("spears:spear_obsidian", 0.0069, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("spears:spear_diamond", 0.0065, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("spears:spear_copper", 0.0306, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("spears:spear_bronze", 0.0306, 2, nil, {min_wear, max_wear}, "armes")
treasurer.register_treasure("throwing:arrow_torch", 0.0034, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_stone", 0.1556, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_steel", 0.0574, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_shell", 0.0114, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_obsidian", 0.0069, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_fireworks_red", 0.0114, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_fireworks_blue", 0.0114, 2, {1, 12}, nil, "armes")
treasurer.register_treasure("throwing:arrow_diamond", 0.0065, 2, {1, 12}, nil, "armes")
-- Groupe "nether"
treasurer.register_treasure("nether:sword_netherrack", 0.7118, 0.59, nil, {min_wear, max_wear}, "nether")
treasurer.register_treasure("nether:sword_netherrack_blue", 0.034, 3.46, nil, {min_wear, max_wear}, "nether")
treasurer.register_treasure("nether:sword_white", 0.0004, 6.43, nil, {min_wear, max_wear}, "nether")
-- Groupe "armures"
for _,material in ipairs(
{
{"wood", 0.0157, 1},
{"cactus", 0.0157, 1},
{"steel", 0.0141, 2},
{"hardenedleather", 0.0150, 3},
{"bronze", 0.0063, 4},
{"gold", 0.0023, 5},
{"diamond", 0.0012, 6},
{"mithril", 0.0010, 7},
{"reinforcedleather", 0.0006, 8},
{"blackmithril", 0.0003, 9}
}) do
treasurer.register_treasure("3d_armor:".."boots_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armures")
treasurer.register_treasure("3d_armor:".."chestplate_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armures")
treasurer.register_treasure("3d_armor:".."helmet_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armures")
treasurer.register_treasure("3d_armor:".."leggings_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armures")
end
-- Groupe "outils"
treasurer.register_treasure("fishing:pole_wood", 0.1, 1, nil, {min_wear, max_wear}, "outils")
treasurer.register_treasure("fishing:pole_perfect", 0.0008, 10, nil, {min_wear, max_wear}, "outils")
-- Groupe "bonus"
treasurer.register_treasure("bobblocks:health_off", 0.1, 1, {1,3}, nil, "bonus")
-- Groupe "carburant"
treasurer.register_treasure("default:coalblock", 0.0004, 10, {1,4}, nil, "carburant")
treasurer.register_treasure("bucket:bucket_lava", 0.0131, 8, nil, nil, "carburant")
treasurer.register_treasure("default:coal_lump", 0.0035, 7, {1,5}, nil, "carburant")
treasurer.register_treasure("default:jungletree", 0.0235, 6, {10,30}, nil, "carburant")
treasurer.register_treasure("default:tree", 0.0235, 6, {10,30}, nil, "carburant")
treasurer.register_treasure("homedecor:oil_extract", 0.0391, 6, {1,20}, nil, "carburant")
treasurer.register_treasure("default:cactus", 0.0047, 5, {1,7}, nil, "carburant")
treasurer.register_treasure("default:junglewood", 0.0939, 4, {5,40}, nil, "carburant")
treasurer.register_treasure("default:wood", 0.0939, 3, {5,40}, nil, "carburant")
treasurer.register_treasure("default:leaves", 0.2348, 2, {1,20}, nil, "carburant")
treasurer.register_treasure("default:junglegrass", 0.1174, 2, {1,20}, nil, "carburant")
treasurer.register_treasure("default:dry_shrub", 0.1174, 1, {1,10}, nil, "carburant")
treasurer.register_treasure("default:grass_1", 0.2348, 1, {1,30}, nil, "carburant")
-- Groupe "precieux"
treasurer.register_treasure("default:mese_block", 0.0034, 10, nil, nil, "precieux")
treasurer.register_treasure("default:diamond", 0.0068, 9, nil, nil, "precieux")
treasurer.register_treasure("moreores:mineral_mithril", 0.0068, 9, nil, nil, "precieux")
treasurer.register_treasure("moreores:mithril_ingot", 0.0068, 9, nil, nil, "precieux")
treasurer.register_treasure("default:gold_lump", 0.0135, 9, {1,3}, nil, "precieux")
treasurer.register_treasure("default:gold_ingot", 0.0135, 9, {1,2}, nil, "precieux")
treasurer.register_treasure("default:mese_crystal", 0.0135, 9, {1,2}, nil, "precieux")
treasurer.register_treasure("moreores:silver_ingot", 0.0270, 8, nil, nil, "precieux")
treasurer.register_treasure("moreores:mineral_silver", 0.0270, 8, {1,2}, nil, "precieux")
treasurer.register_treasure("default:tin_ingot", 0.0304, 7, {1,2}, nil, "precieux")
treasurer.register_treasure("default:tin_lump", 0.0304, 7, {1,3}, nil, "precieux")
treasurer.register_treasure("default:copper_ingot", 0.0372, 7, {1,2}, nil, "precieux")
treasurer.register_treasure("default:bronze_ingot", 0.0372, 7, {1,3}, nil, "precieux")
treasurer.register_treasure("technic:uranium_lump", 0.0372, 7, {1,2}, nil, "precieux")
treasurer.register_treasure("default:copper_lump", 0.0405, 6, {1,3}, nil, "precieux")
treasurer.register_treasure("technic:chromium_ingot", 0.0405, 6, nil, nil, "precieux")
treasurer.register_treasure("technic:chromium_lump", 0.0439, 5, nil, nil, "precieux")
treasurer.register_treasure("technic:lead_ingot", 0.0642, 5, {1,2}, nil, "precieux")
treasurer.register_treasure("technic:lead_lump", 0.0676, 4, {1,3}, nil, "precieux")
treasurer.register_treasure("technic:zinc_ingot", 0.0743, 3, {1,2}, nil, "precieux")
treasurer.register_treasure("technic:zinc_lump", 0.0811, 3, {1,3}, nil, "precieux")
treasurer.register_treasure("default:steel_ingot", 0.0845, 2, {1,5}, nil, "precieux")
treasurer.register_treasure("default:iron_lump", 0.0912, 1, {1,10}, nil, "precieux")
treasurer.register_treasure("default:mese_crystal_fragment", 0.1216, 1, {1,2}, nil, "precieux")