⁉️How To ?

This is how to create perks and link them correctly !

To create a perk, each perk have an icon, a title, a description, requirements and a specified UNIQUE ID,

{
    id          = 'emerald-harvest',     -- the unique id of the perk, that will be used to link other perks to it
    position    = { x = 0, y = 250 },    -- the position inside the ui
    data        = { 
        icon        = 'fa-solid fa-wand-magic-sparkles', -- the icon (https://fontawesome.com/search?ic=free)
        title       = 'Emerald Harvest',    -- the title
        description = '25% chance to gain an extra weed crop when harvesting', -- the description
        metadata    = {
            level       = 0,             -- minimum required level to unlock this perk
            perk        = 'numb-liberation',      -- required perk ID to unlock this perk (if nil then it shall be not linked on the head)
            points      = 1              -- minimum points to unlock this perk
        }  
    },
},

Last updated