<commit_before>require("item.base.crafts")

module("content.craft.smithing", package.seeall)

smithing = item.base.crafts.Craft:new{
                      craftEN = "blacksmithing",
                      craftDE = "Schmieden",
                      handTool = 23,
                      leadSkill = Character.smithing,
                      defaultFoodConsumption = 300,
                      sfx = 8,
                      sfxDuration = 15,
                    }

smithing:addTool(172); -- anvil
smithing:addActiveTool(172, 13); -- anvil with glowing metal

local catId = smithing:addCategory("tools", "Werkzeuge")
		
--Pins
local product = smithing:addProduct(catId, 2738, 0, 20, 5, 10, 5)
product:addIngredient(2535) -- Iron Ingot: 1x1

--Hammer
product = smithing:addProduct(catId, 23, 0, 20, 10, 20)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2541) -- Hammer Handle: 1x1

--Pickaxe
product = smithing:addProduct(catId, 2763, 0, 20, 15, 30)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2544) -- Large handle: 1x1

--Chisel
product = smithing:addProduct(catId, 737, 2, 22, 12, 24)
product:addIngredient(2535, 2) -- iron Ingot: 2x1

--Crucible-Princers
product = smithing:addProduct(catId, 2751, 4, 24, 12, 24)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1

--Tongs
product = smithing:addProduct(catId, 2140, 6, 26, 14, 28)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1

--Needle
product = smithing:addProduct(catId, 47, 8, 28, 7, 14)
product:addIngredient(2535) -- Iron Ingot: 1x1

--Scissors
product = smithing:addProduct(catId, 6, 10, 30, 16, 32)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1

--Finesmithing hammer
product = smithing:addProduct(catId, 122, 12, 32, 24, 48)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2541) -- Hammer Handle: 1x1

--Sickle
product = smithing:addProduct(catId, 126, 14, 34, 24, 48)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2570) -- Sickle Handle: 1x1

--Scyte
product = smithing:addProduct(catId, 271, 16, 36, 27, 54)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2566) -- Scythe Handle: 1x1

--Saw
product = smithing:addProduct(catId, 9, 18, 38, 27, 54)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2561) -- Saw Handle: 1x1

--Hatchet
product = smithing:addProduct(catId, 74, 20, 40, 30, 60)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Shovel
product = smithing:addProduct(catId, 24, 22, 42, 30, 60)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2567) -- Shovel Handle: 1x1

--Razor
product = smithing:addProduct(catId, 2746, 24, 44, 33, 66)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2570) -- Sickle Handle: 1x1

catId = smithing:addCategory("helmets", "Helme")

--Horned Helm
product = smithing:addProduct(catId, 7, 13, 33, 24, 48)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Orc Helmet
product = smithing:addProduct(catId, 16, 26, 46, 55, 110)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1

--Serinjah Helm
product = smithing:addProduct(catId, 2444, 39, 59, 90, 180)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Storm cap
product = smithing:addProduct(catId, 2441, 52, 72, 180, 360)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(176, 2) -- Grey Cloth: 2x1
product:addIngredient(2550) -- Copper Ingot: 1x1

--Chain helmet
product = smithing:addProduct(catId, 324, 0, 20, 20, 40)
product:addIngredient(2535, 4) -- iron Ingot: 4x1

--Gynkese Merc Helmet
product = smithing:addProduct(catId, 2302, 12, 32, 40, 80)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1

--Salkmaerian Paladin Helm
product = smithing:addProduct(catId, 2291, 25, 45, 66, 132)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Albarian Soldier's Helm
product = smithing:addProduct(catId, 2287, 38, 58, 98, 196)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Flame Helmet
product = smithing:addProduct(catId, 2286, 51, 71, 216, 432)
product:addIngredient(2535, 8) -- Iron Ingot: 8x1
product:addIngredient(176) -- Grey Cloth: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(236) -- Gold Ingot: 1x1

--Round Steel Helmets
product = smithing:addProduct(catId, 2290, 0, 20, 15, 30)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Steel Cap
product = smithing:addProduct(catId, 202, 11, 31, 48, 96)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1

--Steel Hat
product = smithing:addProduct(catId, 187, 21, 41, 70, 140)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Pot Helmet
product = smithing:addProduct(catId, 94, 31, 51, 104, 208)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Visored Helm
product = smithing:addProduct(catId, 184, 41, 61, 135, 270)
product:addIngredient(2535, 8) -- Iron Ingot: 8x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Black Visored Helm
product = smithing:addProduct(catId, 185, 51, 71, 216, 432)
product:addIngredient(2535, 8) -- Iron Ingot: 8x1
product:addIngredient(176) -- Grey Cloth: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(2571) -- Merinium Ingot

catId = smithing:addCategory("armour", "Rstungen")

--Light Blue Breastplate
product = smithing:addProduct(catId, 2407, 72, 92, 345, 690)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 3) -- Grey Cloth: 3x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1

--Light Mercenary Armour
product = smithing:addProduct(catId, 2359, 82, 100, 575, 1150)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 4) -- Grey Cloth: 4x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(2547, 2) -- Leather: 2x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Light Elven Armour
product = smithing:addProduct(catId, 2399, 90, 100, 675, 1350)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2550, 4) -- Copper Ingot: 4x1
product:addIngredient(2547, 2) -- Leather: 2x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2552) -- Pure Earth

--Chain Shirt
product = smithing:addProduct(catId, 101, 33, 53, 140, 280)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1

--Dwarven State armour
product = smithing:addProduct(catId, 2390, 43, 63, 192, 384)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 2) -- Grey Cloth: 2x1

--Elven Silversteel
product = smithing:addProduct(catId, 2403, 53, 73, 252, 504)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 3) -- Grey Cloth: 3x1
product:addIngredient(2550) -- Copper Ingot: 1x1

--Lizard Armour
product = smithing:addProduct(catId, 696, 63, 83, 399, 798)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 4) -- Grey Cloth: 4x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1

--Salkmaerian Armour
product = smithing:addProduct(catId, 2389, 73, 93, 529, 1058)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1

--Salkmaerian Officers Armour
product = smithing:addProduct(catId, 2365, 83, 100, 806, 1612)
product:addIngredient(2535, 17) -- Iron Ingot: 17x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(2550, 4) -- Copper Ingot: 4x1
product:addIngredient(2547, 2) -- Leather: 2x1
product:addIngredient(236) -- Gold Ingot: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Albarian Noble Armour
product = smithing:addProduct(catId, 2367, 90, 100, 1269, 2538)
product:addIngredient(2535, 20) -- Iron Ingot: 20x1
product:addIngredient(176, 6) -- Grey Cloth: 6x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(2547, 5) -- Leather: 5x1
product:addIngredient(236, 3) -- Gold Ingot: 3x1
product:addIngredient(284, 3) -- Sapphire: 3x1
product:addIngredient(198, 3) -- Topas: 3x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2552) -- Pure Earth

--Plate Armour
product = smithing:addProduct(catId, 4, 31, 51, 208, 416)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(2547) -- Leather: 1x1

--Steel Plate
product = smithing:addProduct(catId, 2364, 41, 61, 270, 540)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 6) -- Grey Cloth: 6x1
product:addIngredient(2547, 2) -- Leather: 2x1

--Albarian Steel Plate
product = smithing:addProduct(catId, 2369, 51, 71, 450, 900)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 7) -- Grey Cloth: 7x1
product:addIngredient(2547, 3) -- Leather: 3x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1

--Dwarvenplate
product = smithing:addProduct(catId, 2395, 61, 81, 600, 1200)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(176, 8) -- Grey Cloth: 8x1
product:addIngredient(2547, 4) -- Leather: 4x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1

--Nightplate
product = smithing:addProduct(catId, 2363, 71, 91, 828, 1656)
product:addIngredient(2535, 17) -- Iron Ingot: 17x1
product:addIngredient(176, 9) -- Grey Cloth: 9x1
product:addIngredient(2547, 5) -- Leather: 5x1
product:addIngredient(2550, 4) -- Copper Ingot: 4x1
product:addIngredient(2571) -- Merinium Ingot

--Shadowplate
product = smithing:addProduct(catId, 2357, 81, 100, 1175, 2350)
product:addIngredient(2535, 20) -- Iron Ingot: 20x1
product:addIngredient(176, 10) -- Grey Cloth: 10x1
product:addIngredient(2547, 5) -- Leather: 5x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(283, 5) -- Obsidian: 5x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Heavy Plate
product = smithing:addProduct(catId, 2393, 90, 100, 1350, 2700)
product:addIngredient(2535, 25) -- Iron Ingot: 25x1
product:addIngredient(176, 10) -- Grey Cloth: 10x1
product:addIngredient(2547, 7) -- Leather: 7x1
product:addIngredient(2550, 6) -- Copper Ingot: 6x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2552) -- Pure Earth

--Lor-Angur Guardians
product = smithing:addProduct(catId, 2360, 50, 70, 459, 918)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(236) -- Gold: 1x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(284, 3) -- Sapphire: 3x1

--Magical Elven Armour
product = smithing:addProduct(catId, 2400, 70, 90, 836, 1672)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(176, 7) -- Grey Cloth: 7x1
product:addIngredient(236, 3) -- Gold: 3x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(46, 3) -- Ruby: 3x1
product:addIngredient(198, 3) -- Topas: 3x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

catId = smithing:addCategory("gloves", "Handschuhe")

--Steel Gloves
product = smithing:addProduct(catId, 325, 20, 40, 30, 60)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Salkmaerian steel gloves
product = smithing:addProduct(catId, 528, 30, 50, 36, 72)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Dwarven Metal Gloves
product = smithing:addProduct(catId, 529, 40, 60, 60, 120)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1

--Albarian Steel Gloves
product = smithing:addProduct(catId, 530, 50, 70, 102, 204)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2550, 2) -- Copper: 2x1

--Knight Gloves
product = smithing:addProduct(catId, 531, 60, 80, 160, 320)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2550, 3) -- Copper: 3x1

catId = smithing:addCategory("pants", "Hosen")

--Short Chain Pants
product = smithing:addProduct(catId, 2112, 57, 77, 190, 380)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1

--Chain Pants
product = smithing:addProduct(catId, 2111, 70, 90, 286, 572)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1

--Short Iron Greaves
product = smithing:addProduct(catId, 2117, 30, 50, 120, 240)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1

--Steel Greaves
product = smithing:addProduct(catId, 2172, 50, 70, 204, 408)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2547, 2) -- Leather: 2x1

--Iron Greaves
product = smithing:addProduct(catId, 2116, 70, 90, 374, 748)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(2547, 2) -- Leather: 2x1

catId = smithing:addCategory("boots", "Schuhe")

--Steel Boots
product = smithing:addProduct(catId, 326, 40, 60, 105, 210)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1

--Salkmaerian Steel Boots
product = smithing:addProduct(catId, 699, 50, 70, 187, 374)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2550) -- Copper: 1x1

--Albarian Steel Boots
product = smithing:addProduct(catId, 771, 60, 80, 240, 480)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2550, 2) -- Copper: 2x1

--Knight Boots
product = smithing:addProduct(catId, 770, 70, 90, 330, 660)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2550, 3) -- Copper: 3x1
product:addIngredient(2547, 2) -- Leather: 2x1

catId = smithing:addCategory("maces", "Morgensterne")

--Mace
product = smithing:addProduct(catId, 230, 18, 38, 27, 54)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2548) -- Mace Handle: 1x1

--Battle Flail
product = smithing:addProduct(catId, 231, 36, 56, 102, 204)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2549) -- Morning Star: 1x1

--War Flail
product = smithing:addProduct(catId, 2737, 48, 68, 112, 224)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(2549) -- Morning Star: 1x1

--Warhammer
product = smithing:addProduct(catId, 226, 72, 92, 253, 506)
product:addIngredient(2535, 9) -- Iron Ingot: 9x1
product:addIngredient(2544) -- Large Handle: 1x1
product:addIngredient(2550) -- Copper Ingot: 1x1

catId = smithing:addCategory("slashing weapons", "Schnittwaffen")

--Barbarian Axe
product = smithing:addProduct(catId, 2711, 0, 20, 20, 40)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Short Sword
product = smithing:addProduct(catId, 78, 6, 26, 12, 24)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Serinjah Sword
product = smithing:addProduct(catId, 1, 9, 29, 21, 42)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Battleaxe
product = smithing:addProduct(catId, 2946, 15, 35, 36, 72)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Orc Axe
product = smithing:addProduct(catId, 2642, 19, 39, 40, 80)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Sabre
product = smithing:addProduct(catId, 25, 23, 43, 33, 66)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Scimitar
product = smithing:addProduct(catId, 2757, 27, 47, 36, 72)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Broadsword
product = smithing:addProduct(catId, 2658, 31, 51, 39, 78)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Longsword
product = smithing:addProduct(catId, 2701, 39, 59, 60, 120)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Heavy Battleaxe
product = smithing:addProduct(catId, 2629, 63, 83, 105, 210)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Elvensword
product = smithing:addProduct(catId, 2778, 82, 100, 175, 350)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(284) -- Sapphire: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Dwarven Axe
product = smithing:addProduct(catId, 2660, 85, 100, 208, 416)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(198) -- Topas: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Snakesword
product = smithing:addProduct(catId, 2788, 89, 100, 189, 378)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(197) -- Amethyst: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Elven rainbowsword
product = smithing:addProduct(catId, 2775, 89, 100, 216, 432)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(46) -- Ruby: 1x1
product:addIngredient(284) -- Sapphire: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Fire Broadsword
product = smithing:addProduct(catId, 2656, 92, 100, 224, 448)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Fire Longsword
product = smithing:addProduct(catId, 206, 94, 100, 252, 504)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Serinjah Sword
product = smithing:addProduct(catId, 2693, 96, 100, 232, 464)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Broadsword
product = smithing:addProduct(catId, 2654, 98, 100, 232, 464)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Longsword
product = smithing:addProduct(catId, 2704, 99, 100, 270, 540)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Dwarven Axe
product = smithing:addProduct(catId, 2662, 99, 100, 300, 600)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

catId = smithing:addCategory("stabbing weapons", "Stichwaffen")

--Simple Dagger
product = smithing:addProduct(catId, 27, 0, 20, 10, 20)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1

--Dagger
product = smithing:addProduct(catId, 189, 16, 36, 18, 36)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1

--Ornate Dagger
product = smithing:addProduct(catId, 190, 32, 52, 26, 52)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1

--Red Dagger
product = smithing:addProduct(catId, 2740, 80, 100, 125, 250)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2553) -- Pure Fire: 1x1

--Rapier
product = smithing:addProduct(catId, 2675, 88, 100, 162, 324)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Malachin Dagger
product = smithing:addProduct(catId, 91, 93, 100, 196, 392)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2550) -- Copper Ingot: 1x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2571) -- Merinium: 1x1
product:addIngredient(2551) -- Pure Air: 1x1

--Red Fire Dagger
product = smithing:addProduct(catId, 2742, 97, 100, 232, 464)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Dagger
product = smithing:addProduct(catId, 2671, 99, 100, 300, 600)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1
product:addIngredient(236, 3) -- Gold Ingot: 3x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium: 1x1

catId = smithing:addCategory("two-hand weapons", "Zweihandwaffen")

--Executioner's Axe
product = smithing:addProduct(catId, 2723, 0, 20, 20, 40)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2573) -- Long Staff Handle: 1x1

--Longaxe
product = smithing:addProduct(catId, 88, 20, 40, 40, 80)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2544) -- Large Handle: 1x1

--Halberd
product = smithing:addProduct(catId, 77, 30, 50, 60, 120)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2573) -- Long Staff Handle: 1x1

--Bastard sword
product = smithing:addProduct(catId, 204, 40, 60, 75, 150)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Waraxe
product = smithing:addProduct(catId, 383, 50, 70, 85, 170)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Two-Handed Sword
product = smithing:addProduct(catId, 2731, 60, 80, 120, 240)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Large Waraxe
product = smithing:addProduct(catId, 188, 70, 90, 132, 264)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Double Axe
product = smithing:addProduct(catId, 205, 80, 100, 200, 400)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- AxeHandle: 1x1
product:addIngredient(104) -- Silver Ingot
product:addIngredient(2571) -- Merinium: 1x1

--Firewaraxe
product = smithing:addProduct(catId, 2627, 93, 100, 280, 560)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(2550) -- Copper Ingot: 1x1
product:addIngredient(236) -- Gold Ingot: 1x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium: 1x1

--Fireaxe
product = smithing:addProduct(catId, 2640, 97, 100, 348, 696)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium: 1x1

--Magical Waraxe
product = smithing:addProduct(catId, 2626, 99, 100, 420, 840)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- AxeHandle: 1x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1
product:addIngredient(236, 3) -- Gold Ingot: 3x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium: 1x1

catId = smithing:addCategory("throwing weapons", "Wurfwaffen")

--Throwing Star
product = smithing:addProduct(catId, 294, 10, 30, 7, 14, 10)
product:addIngredient(2535) -- Iron Ingot: 1x1

--Throwing Axe
product = smithing:addProduct(catId, 2645, 20, 40, 10, 20, 5)
product:addIngredient(2535) -- Iron Ingot: 1x1 

if isTestserver() then
	catId = smithing:addCategory("Rare Items", "Rare Items")
	
	product = smithing:addProduct(catId, 189, 0, 40, 1, 1, 1,{"RareWeapon 1"})
	product:addIngredient(189,1,{"RareWeapon -1"});
end

<commit_msg>Hopefully this will work<commit_after>require("item.base.crafts")

module("content.craft.smithing", package.seeall)

smithing = item.base.crafts.Craft:new{
                      craftEN = "blacksmithing",
                      craftDE = "Schmieden",
                      handTool = 23,
                      leadSkill = Character.smithing,
                      defaultFoodConsumption = 300,
                      sfx = 8,
                      sfxDuration = 15,
                    }

smithing:addTool(172); -- anvil
smithing:addActiveTool(172, 13); -- anvil with glowing metal

local catId = smithing:addCategory("tools", "Werkzeuge")
		
--Pins
local product = smithing:addProduct(catId, 2738, 0, 20, 5, 10, 5)
product:addIngredient(2535) -- Iron Ingot: 1x1

--Hammer
product = smithing:addProduct(catId, 23, 0, 20, 10, 20)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2541) -- Hammer Handle: 1x1

--Pickaxe
product = smithing:addProduct(catId, 2763, 0, 20, 15, 30)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2544) -- Large handle: 1x1

--Chisel
product = smithing:addProduct(catId, 737, 2, 22, 12, 24)
product:addIngredient(2535, 2) -- iron Ingot: 2x1

--Crucible-Princers
product = smithing:addProduct(catId, 2751, 4, 24, 12, 24)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1

--Tongs
product = smithing:addProduct(catId, 2140, 6, 26, 14, 28)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1

--Needle
product = smithing:addProduct(catId, 47, 8, 28, 7, 14)
product:addIngredient(2535) -- Iron Ingot: 1x1

--Scissors
product = smithing:addProduct(catId, 6, 10, 30, 16, 32)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1

--Finesmithing hammer
product = smithing:addProduct(catId, 122, 12, 32, 24, 48)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2541) -- Hammer Handle: 1x1

--Sickle
product = smithing:addProduct(catId, 126, 14, 34, 24, 48)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2570) -- Sickle Handle: 1x1

--Scyte
product = smithing:addProduct(catId, 271, 16, 36, 27, 54)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2566) -- Scythe Handle: 1x1

--Saw
product = smithing:addProduct(catId, 9, 18, 38, 27, 54)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2561) -- Saw Handle: 1x1

--Hatchet
product = smithing:addProduct(catId, 74, 20, 40, 30, 60)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Shovel
product = smithing:addProduct(catId, 24, 22, 42, 30, 60)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2567) -- Shovel Handle: 1x1

--Razor
product = smithing:addProduct(catId, 2746, 24, 44, 33, 66)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2570) -- Sickle Handle: 1x1

catId = smithing:addCategory("helmets", "Helme")

--Horned Helm
product = smithing:addProduct(catId, 7, 13, 33, 24, 48)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Orc Helmet
product = smithing:addProduct(catId, 16, 26, 46, 55, 110)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1

--<NAME>
product = smithing:addProduct(catId, 2444, 39, 59, 90, 180)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Storm cap
product = smithing:addProduct(catId, 2441, 52, 72, 180, 360)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(176, 2) -- Grey Cloth: 2x1
product:addIngredient(2550) -- Copper Ingot: 1x1

--Chain helmet
product = smithing:addProduct(catId, 324, 0, 20, 20, 40)
product:addIngredient(2535, 4) -- iron Ingot: 4x1

--Gynkese Merc Helmet
product = smithing:addProduct(catId, 2302, 12, 32, 40, 80)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1

--Salkmaerian Paladin Helm
product = smithing:addProduct(catId, 2291, 25, 45, 66, 132)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Albarian Soldier's Helm
product = smithing:addProduct(catId, 2287, 38, 58, 98, 196)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Flame Helmet
product = smithing:addProduct(catId, 2286, 51, 71, 216, 432)
product:addIngredient(2535, 8) -- Iron Ingot: 8x1
product:addIngredient(176) -- Grey Cloth: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(236) -- Gold Ingot: 1x1

--Round Steel Helmets
product = smithing:addProduct(catId, 2290, 0, 20, 15, 30)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Steel Cap
product = smithing:addProduct(catId, 202, 11, 31, 48, 96)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1

--Steel Hat
product = smithing:addProduct(catId, 187, 21, 41, 70, 140)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Pot Helmet
product = smithing:addProduct(catId, 94, 31, 51, 104, 208)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Visored Helm
product = smithing:addProduct(catId, 184, 41, 61, 135, 270)
product:addIngredient(2535, 8) -- Iron Ingot: 8x1
product:addIngredient(176) -- Grey Cloth: 1x1

--Black Visored Helm
product = smithing:addProduct(catId, 185, 51, 71, 216, 432)
product:addIngredient(2535, 8) -- Iron Ingot: 8x1
product:addIngredient(176) -- Grey Cloth: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(2571) -- Merinium Ingot

catId = smithing:addCategory("armour", "Rstungen")

--Light Blue Breastplate
product = smithing:addProduct(catId, 2407, 72, 92, 345, 690)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 3) -- Grey Cloth: 3x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1

--Light Mercenary Armour
product = smithing:addProduct(catId, 2359, 82, 100, 575, 1150)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 4) -- Grey Cloth: 4x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(2547, 2) -- Leather: 2x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Light Elven Armour
product = smithing:addProduct(catId, 2399, 90, 100, 675, 1350)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2550, 4) -- Copper Ingot: 4x1
product:addIngredient(2547, 2) -- Leather: 2x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2552) -- Pure Earth

--Chain Shirt
product = smithing:addProduct(catId, 101, 33, 53, 140, 280)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1

--Dwarven State armour
product = smithing:addProduct(catId, 2390, 43, 63, 192, 384)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 2) -- Grey Cloth: 2x1

--Elven Silversteel
product = smithing:addProduct(catId, 2403, 53, 73, 252, 504)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 3) -- Grey Cloth: 3x1
product:addIngredient(2550) -- Copper Ingot: 1x1

--Lizard Armour
product = smithing:addProduct(catId, 696, 63, 83, 399, 798)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 4) -- Grey Cloth: 4x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1

--Salkmaerian Armour
product = smithing:addProduct(catId, 2389, 73, 93, 529, 1058)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1

--Salkmaerian Officers Armour
product = smithing:addProduct(catId, 2365, 83, 100, 806, 1612)
product:addIngredient(2535, 17) -- Iron Ingot: 17x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(2550, 4) -- Copper Ingot: 4x1
product:addIngredient(2547, 2) -- Leather: 2x1
product:addIngredient(236) -- Gold Ingot: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Albarian Noble Armour
product = smithing:addProduct(catId, 2367, 90, 100, 1269, 2538)
product:addIngredient(2535, 20) -- Iron Ingot: 20x1
product:addIngredient(176, 6) -- Grey Cloth: 6x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(2547, 5) -- Leather: 5x1
product:addIngredient(236, 3) -- Gold Ingot: 3x1
product:addIngredient(284, 3) -- Sapphire: 3x1
product:addIngredient(198, 3) -- Topas: 3x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2552) -- Pure Earth

--Plate Armour
product = smithing:addProduct(catId, 4, 31, 51, 208, 416)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(2547) -- Leather: 1x1

--Steel Plate
product = smithing:addProduct(catId, 2364, 41, 61, 270, 540)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(176, 6) -- Grey Cloth: 6x1
product:addIngredient(2547, 2) -- Leather: 2x1

--Albarian Steel Plate
product = smithing:addProduct(catId, 2369, 51, 71, 450, 900)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 7) -- Grey Cloth: 7x1
product:addIngredient(2547, 3) -- Leather: 3x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1

--Dwarvenplate
product = smithing:addProduct(catId, 2395, 61, 81, 600, 1200)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(176, 8) -- Grey Cloth: 8x1
product:addIngredient(2547, 4) -- Leather: 4x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1

--Nightplate
product = smithing:addProduct(catId, 2363, 71, 91, 828, 1656)
product:addIngredient(2535, 17) -- Iron Ingot: 17x1
product:addIngredient(176, 9) -- Grey Cloth: 9x1
product:addIngredient(2547, 5) -- Leather: 5x1
product:addIngredient(2550, 4) -- Copper Ingot: 4x1
product:addIngredient(2571) -- Merinium Ingot

--Shadowplate
product = smithing:addProduct(catId, 2357, 81, 100, 1175, 2350)
product:addIngredient(2535, 20) -- Iron Ingot: 20x1
product:addIngredient(176, 10) -- Grey Cloth: 10x1
product:addIngredient(2547, 5) -- Leather: 5x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(283, 5) -- Obsidian: 5x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Heavy Plate
product = smithing:addProduct(catId, 2393, 90, 100, 1350, 2700)
product:addIngredient(2535, 25) -- Iron Ingot: 25x1
product:addIngredient(176, 10) -- Grey Cloth: 10x1
product:addIngredient(2547, 7) -- Leather: 7x1
product:addIngredient(2550, 6) -- Copper Ingot: 6x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2552) -- Pure Earth

--Lor-Angur Guardians
product = smithing:addProduct(catId, 2360, 50, 70, 459, 918)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1
product:addIngredient(176, 5) -- Grey Cloth: 5x1
product:addIngredient(236) -- Gold: 1x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(284, 3) -- Sapphire: 3x1

--Magical Elven Armour
product = smithing:addProduct(catId, 2400, 70, 90, 836, 1672)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(176, 7) -- Grey Cloth: 7x1
product:addIngredient(236, 3) -- Gold: 3x1
product:addIngredient(2550, 5) -- Copper Ingot: 5x1
product:addIngredient(46, 3) -- Ruby: 3x1
product:addIngredient(198, 3) -- Topas: 3x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

catId = smithing:addCategory("gloves", "Handschuhe")

--Steel Gloves
product = smithing:addProduct(catId, 325, 20, 40, 30, 60)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Salkmaerian steel gloves
product = smithing:addProduct(catId, 528, 30, 50, 36, 72)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1

--Dwarven Metal Gloves
product = smithing:addProduct(catId, 529, 40, 60, 60, 120)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1

--Albarian Steel Gloves
product = smithing:addProduct(catId, 530, 50, 70, 102, 204)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2550, 2) -- Copper: 2x1

--Knight Gloves
product = smithing:addProduct(catId, 531, 60, 80, 160, 320)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2550, 3) -- Copper: 3x1

catId = smithing:addCategory("pants", "Hosen")

--Short Chain Pants
product = smithing:addProduct(catId, 2112, 57, 77, 190, 380)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1

--Chain Pants
product = smithing:addProduct(catId, 2111, 70, 90, 286, 572)
product:addIngredient(2535, 13) -- Iron Ingot: 13x1

--Short Iron Greaves
product = smithing:addProduct(catId, 2117, 30, 50, 120, 240)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1

--Steel Greaves
product = smithing:addProduct(catId, 2172, 50, 70, 204, 408)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2547, 2) -- Leather: 2x1

--Iron Greaves
product = smithing:addProduct(catId, 2116, 70, 90, 374, 748)
product:addIngredient(2535, 15) -- Iron Ingot: 15x1
product:addIngredient(2547, 2) -- Leather: 2x1

catId = smithing:addCategory("boots", "Schuhe")

--Steel Boots
product = smithing:addProduct(catId, 326, 40, 60, 105, 210)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1

--Salkmaerian Steel Boots
product = smithing:addProduct(catId, 699, 50, 70, 187, 374)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2550) -- Copper: 1x1

--Albarian Steel Boots
product = smithing:addProduct(catId, 771, 60, 80, 240, 480)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2550, 2) -- Copper: 2x1

--Knight Boots
product = smithing:addProduct(catId, 770, 70, 90, 330, 660)
product:addIngredient(2535, 10) -- Iron Ingot: 10x1
product:addIngredient(2550, 3) -- Copper: 3x1
product:addIngredient(2547, 2) -- Leather: 2x1

catId = smithing:addCategory("maces", "Morgensterne")

--Mace
product = smithing:addProduct(catId, 230, 18, 38, 27, 54)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2548) -- Mace Handle: 1x1

--Battle Flail
product = smithing:addProduct(catId, 231, 36, 56, 102, 204)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2549) -- Morning Star: 1x1

--War Flail
product = smithing:addProduct(catId, 2737, 48, 68, 112, 224)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(2549) -- Morning Star: 1x1

--Warhammer
product = smithing:addProduct(catId, 226, 72, 92, 253, 506)
product:addIngredient(2535, 9) -- Iron Ingot: 9x1
product:addIngredient(2544) -- Large Handle: 1x1
product:addIngredient(2550) -- Copper Ingot: 1x1

catId = smithing:addCategory("slashing weapons", "Schnittwaffen")

--Barbarian Axe
product = smithing:addProduct(catId, 2711, 0, 20, 20, 40)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Short Sword
product = smithing:addProduct(catId, 78, 6, 26, 12, 24)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Serinjah Sword
product = smithing:addProduct(catId, 1, 9, 29, 21, 42)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Battleaxe
product = smithing:addProduct(catId, 2946, 15, 35, 36, 72)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Orc Axe
product = smithing:addProduct(catId, 2642, 19, 39, 40, 80)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Sabre
product = smithing:addProduct(catId, 25, 23, 43, 33, 66)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Scimitar
product = smithing:addProduct(catId, 2757, 27, 47, 36, 72)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Broadsword
product = smithing:addProduct(catId, 2658, 31, 51, 39, 78)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Longsword
product = smithing:addProduct(catId, 2701, 39, 59, 60, 120)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Heavy Battleaxe
product = smithing:addProduct(catId, 2629, 63, 83, 105, 210)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Elvensword
product = smithing:addProduct(catId, 2778, 82, 100, 175, 350)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(284) -- Sapphire: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Dwarven Axe
product = smithing:addProduct(catId, 2660, 85, 100, 208, 416)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(198) -- Topas: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Snakesword
product = smithing:addProduct(catId, 2788, 89, 100, 189, 378)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(197) -- Amethyst: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Elven rainbowsword
product = smithing:addProduct(catId, 2775, 89, 100, 216, 432)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(46) -- Ruby: 1x1
product:addIngredient(284) -- Sapphire: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Fire Broadsword
product = smithing:addProduct(catId, 2656, 92, 100, 224, 448)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Fire Longsword
product = smithing:addProduct(catId, 206, 94, 100, 252, 504)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Serinjah Sword
product = smithing:addProduct(catId, 2693, 96, 100, 232, 464)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Broadsword
product = smithing:addProduct(catId, 2654, 98, 100, 232, 464)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Longsword
product = smithing:addProduct(catId, 2704, 99, 100, 270, 540)
product:addIngredient(2535, 6) -- Iron Ingot: 6x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Dwarven Axe
product = smithing:addProduct(catId, 2662, 99, 100, 300, 600)
product:addIngredient(2535, 7) -- Iron Ingot: 7x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium Ingot

catId = smithing:addCategory("stabbing weapons", "Stichwaffen")

--Simple Dagger
product = smithing:addProduct(catId, 27, 0, 20, 10, 20)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1

--Dagger
product = smithing:addProduct(catId, 189, 16, 36, 18, 36)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1

--Ornate Dagger
product = smithing:addProduct(catId, 190, 32, 52, 26, 52)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1

--Red Dagger
product = smithing:addProduct(catId, 2740, 80, 100, 125, 250)
product:addIngredient(2535, 2) -- Iron Ingot: 2x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(2553) -- Pure Fire: 1x1

--Rapier
product = smithing:addProduct(catId, 2675, 88, 100, 162, 324)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2584) -- Sword Handle: 1x1
product:addIngredient(2571) -- Merinium Ingot
product:addIngredient(104) -- Silver Ingot

--Malachin Dagger
product = smithing:addProduct(catId, 91, 93, 100, 196, 392)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2550) -- Copper Ingot: 1x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2571) -- Merinium: 1x1
product:addIngredient(2551) -- Pure Air: 1x1

--Red Fire Dagger
product = smithing:addProduct(catId, 2742, 97, 100, 232, 464)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium Ingot

--Magical Dagger
product = smithing:addProduct(catId, 2671, 99, 100, 300, 600)
product:addIngredient(2535) -- Iron Ingot: 1x1
product:addIngredient(2530) -- Dagger Handle: 1x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1
product:addIngredient(236, 3) -- Gold Ingot: 3x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium: 1x1

catId = smithing:addCategory("two-hand weapons", "Zweihandwaffen")

--Executioner's Axe
product = smithing:addProduct(catId, 2723, 0, 20, 20, 40)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2573) -- Long Staff Handle: 1x1

--Longaxe
product = smithing:addProduct(catId, 88, 20, 40, 40, 80)
product:addIngredient(2535, 3) -- Iron Ingot: 3x1
product:addIngredient(2544) -- Large Handle: 1x1

--Halberd
product = smithing:addProduct(catId, 77, 30, 50, 60, 120)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2573) -- Long Staff Handle: 1x1

--Bastard sword
product = smithing:addProduct(catId, 204, 40, 60, 75, 150)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Waraxe
product = smithing:addProduct(catId, 383, 50, 70, 85, 170)
product:addIngredient(2535, 4) -- Iron Ingot: 4x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Two-Handed Sword
product = smithing:addProduct(catId, 2731, 60, 80, 120, 240)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2584) -- Sword Handle: 1x1

--Large Waraxe
product = smithing:addProduct(catId, 188, 70, 90, 132, 264)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- AxeHandle: 1x1

--Double Axe
product = smithing:addProduct(catId, 205, 80, 100, 200, 400)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- AxeHandle: 1x1
product:addIngredient(104) -- Silver Ingot
product:addIngredient(2571) -- Merinium: 1x1

--Firewaraxe
product = smithing:addProduct(catId, 2627, 93, 100, 280, 560)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(2550) -- Copper Ingot: 1x1
product:addIngredient(236) -- Gold Ingot: 1x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium: 1x1

--Fireaxe
product = smithing:addProduct(catId, 2640, 97, 100, 348, 696)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- Axe Handle: 1x1
product:addIngredient(2550, 2) -- Copper Ingot: 2x1
product:addIngredient(236, 2) -- Gold Ingot: 2x1
product:addIngredient(2553) -- Pure Fire: 1x1
product:addIngredient(2571) -- Merinium: 1x1

--Magical Waraxe
product = smithing:addProduct(catId, 2626, 99, 100, 420, 840)
product:addIngredient(2535, 5) -- Iron Ingot: 5x1
product:addIngredient(2525) -- AxeHandle: 1x1
product:addIngredient(2550, 3) -- Copper Ingot: 3x1
product:addIngredient(236, 3) -- Gold Ingot: 3x1
product:addIngredient(2551) -- Pure Air: 1x1
product:addIngredient(2571) -- Merinium: 1x1

catId = smithing:addCategory("throwing weapons", "Wurfwaffen")

--Throwing Star
product = smithing:addProduct(catId, 294, 10, 30, 7, 14, 10)
product:addIngredient(2535) -- Iron Ingot: 1x1

--Throwing Axe
product = smithing:addProduct(catId, 2645, 20, 40, 10, 20, 5)
product:addIngredient(2535) -- Iron Ingot: 1x1 

if isTestserver() then
	catId = smithing:addCategory("Rare Items", "Rare Items")
	
	product = smithing:addProduct(catId, 189, 0, 40, 1, 1, 1,{RareWeapon="1"})
	product:addIngredient(189,1,{RareWeapon="-1"});
end


{'fraction_non_alphanumeric': 0.13696342754744645, 'fraction_numerical': 0.13627107599576443, 'mean_word_length': 5.204548325963361, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4807975', 'n_tokens_mistral': 25209, 'n_tokens_neox': 20162, 'n_words': 4728}