<commit_before>-- Farben herstellen

-- UPDATE common SET com_script='item.id_58_mortar' WHERE com_itemid=58;

require("item.general.jewel")
require("item.base.crafts")

module("item.id_58_mortar", package.seeall, package.seeall(item.general.jewel))

function InitCraftingTool( )
    if not InitStartedOnce then
        InitStartedOnce = true;

        mortar = item.base.crafts.Craft:new{ LeadAttrib = "dexterity",
                            LeadSkill = "tailoring",
                            LeadSkillGroup = 2,
                            DefaultFoodConsumption = 300,
                            DefaultRepair = false
                          };
        
        mortar:AddTool( 12 ); -- Lagerfeuer
        
        mortar:AddInterruptMessage(
        "Du wischst dir den Schwei von der Stirn.",
        "You wipe sweat off your forehead.");
        
        mortar:AddInterruptMessage(
        "Dir fllt der Mrser aus der Hand. Zum Glck ist er ganz geblieben.",
        "You drop your mortar. Luckily it didn't break.");
        
        mortar:AddInterruptMessage(
        "Du berlegst ob du die Farbe noch intensiver machen solltest, aber entscheidest dich dagegen.",
        "You evaluate whether you should deepen the colour, deciding against doing so.");
        
        mortar:AddInterruptMessage(
        "Ein groer dicker Kfer ist irgendwie in die Zutaten gelangt. Du bentigst eine Weile ihn zu fangen und mit ihm das zu machen was er verdient hat.",
        "A big, fat bug has found its way into your ingredients. It takes a while to catch it and seal its fate.");
        
        --Red Dye
product = mortar:AddProduct( 0, 2681, { 0, 20}, 1, { 10, 20 } );
product:AddProductionSteps( { 143, 1, "all" }, 3 ); -- Red Elder: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Green Dye
product = mortar:AddProduct( 0, 2679, { 5, 25}, 1, { 13, 26 } );
product:AddProductionSteps( { 140, 1, "all" }, 3 ); -- Donf Blade: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Black Dye
product = mortar:AddProduct( 0, 2678, { 10, 30}, 1, { 15, 30 } );
product:AddProductionSteps( { 141, 1, "all" }, 3 ); -- Black Thistle: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Yellow Dye
product = mortar:AddProduct( 0, 2682, { 15, 35}, 1, { 18, 36 } );
product:AddProductionSteps( { 135, 1, "all" }, 3 ); -- Yellow Weed: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Blue Dye
product = mortar:AddProduct( 0, 2680, { 20, 40}, 1, { 20, 40 } );
product:AddProductionSteps( { 147, 1, "all" }, 3 ); -- Black Berry: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1 
        
        InitDone = true;
    end
    return mortar;
end --function


function UseItem( User, SourceItem, TargetItem, Counter, Param, ltstate )  -- DONT EDIT THIS LINE!
    -- for the alchemy system
	if (base.common.GetFrontItemID(User) == 550) or (base.common.GetFrontItemID(User) == 551) then
	    CreateHerbalGemDust(User, SourceItem)
	    return
	end
	-- end
	
	Mortar = InitCraftingTool( );
    base.common.ResetInterruption( User, ltstate );
    if ( ltstate == Action.abort ) then
        if (User:increaseAttrib("sex",0) == 0) then
            gText = "seine";
            eText = "his";
        else
            gText = "ihre";
            eText = "her";
        end
        User:talkLanguage(Character.say, Player.german, "#me unterbricht "..gText.." Arbeit.");
        User:talkLanguage(Character.say, Player.english,"#me interrupts "..eText.." work.");
        Mortar:SwapToInactiveItem( User );
        return
    end<commit_msg>changed herbs needed for dye<commit_after>-- Farben herstellen

-- UPDATE common SET com_script='item.id_58_mortar' WHERE com_itemid=58;

require("item.general.jewel")
require("item.base.crafts")

module("item.id_58_mortar", package.seeall, package.seeall(item.general.jewel))

function InitCraftingTool( )
    if not InitStartedOnce then
        InitStartedOnce = true;

        mortar = item.base.crafts.Craft:new{ LeadAttrib = "dexterity",
                            LeadSkill = "tailoring",
                            LeadSkillGroup = 2,
                            DefaultFoodConsumption = 300,
                            DefaultRepair = false
                          };
        
        mortar:AddTool( 12 ); -- Lagerfeuer
        
        mortar:AddInterruptMessage(
        "Du wischst dir den Schwei von der Stirn.",
        "You wipe sweat off your forehead.");
        
        mortar:AddInterruptMessage(
        "Dir fllt der Mrser aus der Hand. Zum Glck ist er ganz geblieben.",
        "You drop your mortar. Luckily it didn't break.");
        
        mortar:AddInterruptMessage(
        "Du berlegst ob du die Farbe noch intensiver machen solltest, aber entscheidest dich dagegen.",
        "You evaluate whether you should deepen the colour, deciding against doing so.");
        
        mortar:AddInterruptMessage(
        "Ein groer dicker Kfer ist irgendwie in die Zutaten gelangt. Du bentigst eine Weile ihn zu fangen und mit ihm das zu machen was er verdient hat.",
        "A big, fat bug has found its way into your ingredients. It takes a while to catch it and seal its fate.");
        
        --Red Dye
product = mortar:AddProduct( 0, 2681, { 0, 20}, 1, { 10, 20 } );
product:AddProductionSteps( { 302, 1, "all" }, 3 ); -- Cherries: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Green Dye
product = mortar:AddProduct( 0, 2679, { 5, 25}, 1, { 13, 26 } );
product:AddProductionSteps( { 290, 1, "all" }, 3 ); -- Cabbage: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Black Dye
product = mortar:AddProduct( 0, 2678, { 10, 30}, 1, { 15, 30 } );
product:AddProductionSteps( { 136, 1, "all" }, 3 ); -- Anger berry: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Yellow Dye
product = mortar:AddProduct( 0, 2682, { 15, 35}, 1, { 18, 36 } );
product:AddProductionSteps( { 135, 1, "all" }, 3 ); -- Yellow Weed: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1

--Blue Dye
product = mortar:AddProduct( 0, 2680, { 20, 40}, 1, { 20, 40 } );
product:AddProductionSteps( { 753, 1, "all" }, 3 ); -- Blue Bird's Berry: 3x1
product:AddProductionSteps( { 52, 1, "all" }, 1 ); -- Water bucket: 1x1 
        
        InitDone = true;
    end
    return mortar;
end --function


function UseItem( User, SourceItem, TargetItem, Counter, Param, ltstate )  -- DONT EDIT THIS LINE!
    -- for the alchemy system
	if (base.common.GetFrontItemID(User) == 550) or (base.common.GetFrontItemID(User) == 551) then
	    CreateHerbalGemDust(User, SourceItem)
	    return
	end
	-- end
	
	Mortar = InitCraftingTool( );
    base.common.ResetInterruption( User, ltstate );
    if ( ltstate == Action.abort ) then
        if (User:increaseAttrib("sex",0) == 0) then
            gText = "seine";
            eText = "his";
        else
            gText = "ihre";
            eText = "her";
        end
        User:talkLanguage(Character.say, Player.german, "#me unterbricht "..gText.." Arbeit.");
        User:talkLanguage(Character.say, Player.english,"#me interrupts "..eText.." work.");
        Mortar:SwapToInactiveItem( User );
        return
    end
{'fraction_non_alphanumeric': 0.12685651996184766, 'fraction_numerical': 0.0416950538220466, 'mean_word_length': 2.5153256704980844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6775625', 'n_tokens_mistral': 2695, 'n_tokens_neox': 2353, 'n_words': 720}