Editing Module:Infobox Skill

From Eco - English Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
-- Credit: Original Infobox (now known as Infobox_Item) created by Pradoxzon was then edited by Nesphit and TreeNuts0. Fyre (FishAus) and Scotty (ZeelNightwolf) further edited the Infobox_Item. They then duplicated and used as a base for Infobox_Skill, Infobox_Plant, and Infobox_Animal.
-- Eco Version : 0.9.0.2 beta release-71


local p = {}
return {
 
    skills = {
-- Grabs args from the parent frame
        ['Advanced Baking'] = {
-- Trims and parses the args into a table, then returns the table
                    ['untranslated'] = 'Advanced Baking',
function norm()
                    ['title'] = '',
    local origArgs = mw.getCurrentFrame():getParent().args
                    ['description'] = 'Advanced baking mostly improves recipes that involve a leavening agent. Level by crafting advanced baking recipes.',
    local args = {}
                    ['skillID'] = 'AdvancedBakingSkill',
   
                    ['skillIDNum'] = '765',
    for k, v in pairs( origArgs ) do
                    ['maxLevel'] = '7',
        v = mw.text.trim( tostring( v ) )
                    ['root'] = false,
        if v ~= '' then
                    ['rootSkill'] = '[[Chef]]',
            args[k] = v
                    ['specialty'] = true,
        end
                    ['specialtySkill'] = nil,
    end
                    ['prerequisites'] = nil,
   
                    ['childSkills'] = nil,
    return args
                    ['specialtySkillBook'] = '[[Advanced Baking Skill Book]]',
end
                    ['specialtySkillScroll'] = '[[Advanced Baking Skill Scroll]]',
 
                    ['itemsGiven'] = nil,
-- Main entry point for the Module
                    ['talents'] =  {
function p.SkillMain()
                            ['level3'] = {'[[Advanced Baking Focused Speed Talent]]', '[[Advanced Baking Parallel Speed Talent]]'},
    -- get args from the Template
                            ['level6'] = {'[[Advanced Baking Frugal Req Talent]]'},
    local args = norm()
                            },
   
                    ['benefits'] =  {
-- create values outside of if statements to ensure they are available to whole function
                            ['level1'] = {
local skills = ''
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '10'},
local check = ''
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '10'},
    -- assign variables for skill or talent whatever is passed. Skill has priority so if both are passed only skill will continue.
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '10'},
    if args.skill ~= nil then
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '10'},
        skills = args.skill
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '10'},
        check = 'skill'
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '10'},
   
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '5000'},
                                    },
                            ['level2'] = {
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '4500'},
                                    },
                            ['level3'] = {
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '4000'},
                                    },
                            ['level4'] = {
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '3500'},
                                    },
                            ['level5'] = {
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '3000'},
                                    },
                            ['level6'] = {
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '2500'},
                                    },
                            ['level7'] = {
                                    {'[[Bearclaw]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Bread]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Camas Bread]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Elk Wellington]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Fruit Tart]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Leavened Dough]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Macaroons]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Pastry Dough]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Pirozhok]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Stuffed Turkey]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Advanced Baking Advanced Upgrade]]', 'Decreases', 'calories of labor', '2000'},
                                    },
                            },
                    ['recipes'] =  {
                            ['level0'] = {},
                            ['level1'] = {'[[Bread]]', '[[Camas Bread]]', '[[Leavened Dough]]', '[[Pastry Dough]]'},
                            ['level2'] = {'[[Bearclaw]]', '[[Fruit Tart]]', '[[Macaroons]]', '[[Pirozhok]]'},
                            ['level3'] = {'[[Elk Wellington]]'},
                            ['level4'] = {'[[Stuffed Turkey]]'},
                            ['level5'] = {},
                            ['level6'] = {},
                            ['level7'] = {'[[Advanced Baking Advanced Upgrade]]'},
                            },
        },
        ['Advanced Cooking'] = {
                    ['untranslated'] = 'Advanced Cooking',
                    ['title'] = '',
                    ['description'] = 'Advanced cooking techniques for producing more complex foods. Level by crafting advanced cooking recipes.',
                    ['skillID'] = 'AdvancedCookingSkill',
                    ['skillIDNum'] = '768',
                    ['maxLevel'] = '7',
                    ['root'] = false,
                    ['rootSkill'] = '[[Chef]]',
                    ['specialty'] = true,
                    ['specialtySkill'] = nil,
                    ['prerequisites'] = nil,
                    ['childSkills'] = nil,
                    ['specialtySkillBook'] = '[[Advanced Cooking Skill Book]]',
                    ['specialtySkillScroll'] = '[[Advanced Cooking Skill Scroll]]',
                    ['itemsGiven'] = nil,
                    ['talents'] =  {
                            ['level3'] = {'[[Advanced Cooking Focused Speed Talent]]', '[[Advanced Cooking Parallel Speed Talent]]'},
                            ['level6'] = {'[[Advanced Cooking Frugal Req Talent]]'},
                            },
                    ['benefits'] =  {
                            ['level1'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Infused Oil]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Pineapple Friend Rice]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Seared Meat]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Simple Syrup]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Sweet Salad]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Tortilla]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Wild Mix]]', 'Decreases', 'calories of labor', '10'},
                                    {'[[Culinary Research Paper Modern]]', 'Decreases', 'calories of labor', '500'},
                                    {'[[Advanced Cooking Advanced Upgrade]]', 'Decreases', 'calories of labor', '5000'},
                                    {'[[Refine Tallow]]', 'Decreases', 'calories of labor', '15'},
                                    },
                            ['level2'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Infused Oil]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Pineapple Friend Rice]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Seared Meat]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Simple Syrup]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Sweet Salad]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Tortilla]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Wild Mix]]', 'Decreases', 'calories of labor', '9'},
                                    {'[[Culinary Research Paper Modern]]', 'Decreases', 'calories of labor', '450'},
                                    {'[[Advanced Cooking Advanced Upgrade]]', 'Decreases', 'calories of labor', '4500'},
                                    {'[[Refine Tallow]]', 'Decreases', 'calories of labor', '13.5'},
                                    },
                            ['level3'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Infused Oil]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Pineapple Friend Rice]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Seared Meat]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Simple Syrup]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Sweet Salad]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Tortilla]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Wild Mix]]', 'Decreases', 'calories of labor', '8'},
                                    {'[[Culinary Research Paper Modern]]', 'Decreases', 'calories of labor', '400'},
                                    {'[[Advanced Cooking Advanced Upgrade]]', 'Decreases', 'calories of labor', '4000'},
                                    {'[[Refine Tallow]]', 'Decreases', 'calories of labor', '12'},
                                    },
                            ['level4'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Infused Oil]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Pineapple Friend Rice]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Seared Meat]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Simple Syrup]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Sweet Salad]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Tortilla]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Wild Mix]]', 'Decreases', 'calories of labor', '7'},
                                    {'[[Culinary Research Paper Modern]]', 'Decreases', 'calories of labor', '350'},
                                    {'[[Advanced Cooking Advanced Upgrade]]', 'Decreases', 'calories of labor', '3500'},
                                    {'[[Refine Tallow]]', 'Decreases', 'calories of labor', '10.5'},
                                    },
                            ['level5'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Infused Oil]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Pineapple Friend Rice]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Seared Meat]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Simple Syrup]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Sweet Salad]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Tortilla]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Wild Mix]]', 'Decreases', 'calories of labor', '6'},
                                    {'[[Culinary Research Paper Modern]]', 'Decreases', 'calories of labor', '300'},
                                    {'[[Advanced Cooking Advanced Upgrade]]', 'Decreases', 'calories of labor', '3000'},
                                    {'[[Refine Tallow]]', 'Decreases', 'calories of labor', '9'},
                                    },
                            ['level6'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Infused Oil]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Pineapple Friend Rice]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Seared Meat]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Simple Syrup]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Sweet Salad]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Tortilla]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Wild Mix]]', 'Decreases', 'calories of labor', '5'},
                                    {'[[Culinary Research Paper Modern]]', 'Decreases', 'calories of labor', '250'},
                                    {'[[Advanced Cooking Advanced Upgrade]]', 'Decreases', 'calories of labor', '2500'},
                                    {'[[Refine Tallow]]', 'Decreases', 'calories of labor', '7.5'},
                                    },
                            ['level7'] = {
                                    {'[[Bear SUPREME]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Boiled Rice]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Boiled Sausage]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Corn Fritters]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Crimson Salad]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Elk Taco]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Fried Hare Haunches]]', 'Decreases', 'calories of labor', '4'},
                                    {'[[Huckleberry Extract]]', 'Decreases', 'calories of labor',
Please note that all contributions to Eco - English Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Eco:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Template used on this page: