<commit_before>-- Backen mit Ofenschieber und Backofen

-- UPDATE common SET com_script='item.id_121_peel' WHERE com_itemid IN (121);

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

module("item.id_121_peel", package.seeall, package.seeall(item.general.wood))

-- Backprodukte Initieren
function InitCraftingTool( )
    if not InitStartedOnce then
        InitStartedOnce = true;
        
        baking = item.base.crafts.Craft:new{ LeadAttrib = "dexterity",
                             LeadSkill = "baking",
                             LeadSkillGroup = 2,
                             DefaultFoodConsumption = 100,
                             DefaultRepair = false
                           };
        baking:AddTool( 119 ); -- Backofen
        baking:AddTool( 120 ); -- Backofen
        
        baking:AddInterruptMessage(
        "Du wischst dir den Schwei von der Stirn.",
        "You wipe sweat off your forehead.");
        
        baking:AddInterruptMessage(
        "Du schaust einen Moment in den Ofen und freust dich wie gut der Teig aufgeht.",
        "You take a look into the oven and watch with joy how the dough rises.");
        
        baking:AddInterruptMessage(
        "Du hltst einen Moment inne und berlegst eine zustzliche Zutat hinzuzufgen, entscheidest dich aber dagegen.",
        "You hesitate and consider to add additional ingredients to the recipe. Finally, you revise your decision.");
        
        baking:AddInterruptMessage(
        "Du wschst dir kurz den klebrigen Teig von den Fingern.",
        "You stop to wash the slippery dough off your hands.");
        
        --------------------------------------------------------------------------------------------
        
        ---------------- BREAD ROLL - 191 ----------------------
        product = baking:AddProduct( 0, 191, {0, 20 }, 1, { 10, 20 } );
        product:AddProductionSteps( {   5, 1, "all" }, 1 ); -- Step 1: Dough (5) 1x
        -------------- BRTCHEN - DONE ----------------

        ---------------- COOKIES - 453 ----------------------
        product = baking:AddProduct( 0, 453, {10, 30 }, 2, { 15, 30 } );
        product:AddProductionSteps( {   5, 1, "all" }, 1 ); -- Step 1: Dough (5) 1x
        product:AddProductionSteps( {2529, 1, "all" }, 1 ); -- Step 2: Honey(2529) 1x
        -------------- COOKIES - DONE ----------------
        
        ---------------- BREAD - 49 ----------------------
        product = baking:AddProduct( 0, 49, {25, 45 }, 1, { 23, 46 } );
        product:AddProductionSteps( {   5, 1, "all" }, 2 ); -- Stepe 1 - 2: Dough (5) 1x
        -------------- BREAD - DONE ----------------

        ---------------- MUFFIN - 454 ----------------------
        product = baking:AddProduct( 0, 454, {45, 65 }, 2, { 33, 66 } );
        product:AddProductionSteps( {   5, 1, "all" }, 2 ); -- Step 1-2: Dough (5) 1x
        product:AddProductionSteps( {2529, 1, "all" }, 1 ); -- Step 3: Honey(2529) 1x
        product:AddProductionSteps( { 147, 5, "all" }, 1 ); -- Step 4: Blackberry(147) 5x
        -------------- MUFFIN - DONE ----------------
        
        ---------------- APPLE PIE - 353 ----------------------
        product = baking:AddProduct( 0, 353, {55, 75 }, 1, { 38, 76 } );
        product:AddProductionSteps( {   5, 1, "all" }, 2 ); -- Step 1-2: Dough (5) 1x
        product:AddProductionSteps( {2529, 2, "all" }, 1 ); -- Step 3: Honey(2529) 2x
        product:AddProductionSteps( {  15, 5, "all" }, 2 ); -- Step 4-5: Apple(15) 5x

        -------------- APPLE PIE - DONE ----------------
        
        ---------------- CHERRY CAKE - 303 ----------------------
        product = baking:AddProduct( 0, 303, {70, 90 }, 1, { 45, 90 } );
        product:AddProductionSteps( {   5, 1, "all" }, 3 ); -- Step 1-3: Dough (5) 1x
        product:AddProductionSteps( {2529, 2, "all" }, 1 ); -- Step 4: Honey(2529) 2x
        product:AddProductionSteps( { 302, 5, "all" }, 2 ); -- Step 5-6: Cherries(302) 5x
        -------------- CHERRY CAKE - DONE ----------------
        
        ---------------- STRAWBERRY CAKE - 354 ----------------------
        product = baking:AddProduct( 0, 354, {80, 100 }, 1, { 50, 100 } );
        product:AddProductionSteps( {   5, 1, "all" }, 4); -- Step 1-4: Dough (5) 1x
        product:AddProductionSteps( {2529, 2, "all" }, 1); -- Step 5: Honey(2529) 2x
        product:AddProductionSteps( { 151, 5, "all" }, 2 ); -- Step 6-7: Strawberries(151) 5x
        -------------- STRAWBERRY CAKE - DONE ---------------- 
        
        InitDone = true;
    end
    return baking;
end --function

function UseItem( User, SourceItem, TargetItem, Counter, Param, ltstate )  -- DONT EDIT THIS LINE!<commit_msg>Time for each step cut by half.<commit_after>-- Backen mit Ofenschieber und Backofen

-- UPDATE common SET com_script='item.id_121_peel' WHERE com_itemid IN (121);

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

module("item.id_121_peel", package.seeall, package.seeall(item.general.wood))

-- Backprodukte Initieren
function InitCraftingTool( )
    if not InitStartedOnce then
        InitStartedOnce = true;
        
        baking = item.base.crafts.Craft:new{ LeadAttrib = "dexterity",
                             LeadSkill = "baking",
                             LeadSkillGroup = 2,
                             DefaultFoodConsumption = 100,
                             DefaultRepair = false
                           };
        baking:AddTool( 119 ); -- Backofen
        baking:AddTool( 120 ); -- Backofen
        
        baking:AddInterruptMessage(
        "Du wischst dir den Schwei von der Stirn.",
        "You wipe sweat off your forehead.");
        
        baking:AddInterruptMessage(
        "Du schaust einen Moment in den Ofen und freust dich wie gut der Teig aufgeht.",
        "You take a look into the oven and watch with joy how the dough rises.");
        
        baking:AddInterruptMessage(
        "Du hltst einen Moment inne und berlegst eine zustzliche Zutat hinzuzufgen, entscheidest dich aber dagegen.",
        "You hesitate and consider to add additional ingredients to the recipe. Finally, you revise your decision.");
        
        baking:AddInterruptMessage(
        "Du wschst dir kurz den klebrigen Teig von den Fingern.",
        "You stop to wash the slippery dough off your hands.");
        
        --------------------------------------------------------------------------------------------
        
        ---------------- BREAD ROLL - 191 ----------------------
        product = baking:AddProduct( 0, 191, {0, 20 }, 1, { 5, 10 } );
        product:AddProductionSteps( {   5, 1, "all" }, 1 ); -- Step 1: Dough (5) 1x
        -------------- BRTCHEN - DONE ----------------

        ---------------- COOKIES - 453 ----------------------
        product = baking:AddProduct( 0, 453, {10, 30 }, 2, { 7, 14 } );
        product:AddProductionSteps( {   5, 1, "all" }, 1 ); -- Step 1: Dough (5) 1x
        product:AddProductionSteps( {2529, 1, "all" }, 1 ); -- Step 2: Honey(2529) 1x
        -------------- COOKIES - DONE ----------------
        
        ---------------- BREAD - 49 ----------------------
        product = baking:AddProduct( 0, 49, {25, 45 }, 1, { 11, 22 } );
        product:AddProductionSteps( {   5, 1, "all" }, 2 ); -- Stepe 1 - 2: Dough (5) 1x
        -------------- BREAD - DONE ----------------

        ---------------- MUFFIN - 454 ----------------------
        product = baking:AddProduct( 0, 454, {45, 65 }, 2, { 16, 32 } );
        product:AddProductionSteps( {   5, 1, "all" }, 2 ); -- Step 1-2: Dough (5) 1x
        product:AddProductionSteps( {2529, 1, "all" }, 1 ); -- Step 3: Honey(2529) 1x
        product:AddProductionSteps( { 147, 5, "all" }, 1 ); -- Step 4: Blackberry(147) 5x
        -------------- MUFFIN - DONE ----------------
        
        ---------------- APPLE PIE - 353 ----------------------
        product = baking:AddProduct( 0, 353, {55, 75 }, 1, { 19, 38 } );
        product:AddProductionSteps( {   5, 1, "all" }, 2 ); -- Step 1-2: Dough (5) 1x
        product:AddProductionSteps( {2529, 2, "all" }, 1 ); -- Step 3: Honey(2529) 2x
        product:AddProductionSteps( {  15, 5, "all" }, 2 ); -- Step 4-5: Apple(15) 5x

        -------------- APPLE PIE - DONE ----------------
        
        ---------------- CHERRY CAKE - 303 ----------------------
        product = baking:AddProduct( 0, 303, {70, 90 }, 1, { 22, 44 } );
        product:AddProductionSteps( {   5, 1, "all" }, 3 ); -- Step 1-3: Dough (5) 1x
        product:AddProductionSteps( {2529, 2, "all" }, 1 ); -- Step 4: Honey(2529) 2x
        product:AddProductionSteps( { 302, 5, "all" }, 2 ); -- Step 5-6: Cherries(302) 5x
        -------------- CHERRY CAKE - DONE ----------------
        
        ---------------- STRAWBERRY CAKE - 354 ----------------------
        product = baking:AddProduct( 0, 354, {80, 100 }, 1, { 25, 50 } );
        product:AddProductionSteps( {   5, 1, "all" }, 4); -- Step 1-4: Dough (5) 1x
        product:AddProductionSteps( {2529, 2, "all" }, 1); -- Step 5: Honey(2529) 2x
        product:AddProductionSteps( { 151, 5, "all" }, 2 ); -- Step 6-7: Strawberries(151) 5x
        -------------- STRAWBERRY CAKE - DONE ---------------- 
        
        InitDone = true;
    end
    return baking;
end --function

function UseItem( User, SourceItem, TargetItem, Counter, Param, ltstate )  -- DONT EDIT THIS LINE!
{'fraction_non_alphanumeric': 0.23181480301582244, 'fraction_numerical': 0.0587235850058405, 'mean_word_length': 1.4050051072522982, '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': '1263978', 'n_tokens_mistral': 3254, 'n_tokens_neox': 2744, 'n_words': 835}