Bone Overlord.gif The Roost of the Graveborn Quest Spoiler!
Domine Graveborn: todos os bosses e mecânicas ilustradas!
Saiba mais ➔
Winter Tree.png Winter Update 2025
Acompanhe tudo sobre o Winter Update 2025!
Saiba mais ➔
Stag.gif The Order of the Stag Quest Spoiler!
Conheça Isle of Ada: sua quest, missões secundárias e todos os bosses!
Saiba mais ➔

Usuário Discussão:Bertgg6: mudanças entre as edições

De Tibia Wiki - A Enciclopédia do Tibia
Ir para navegação Ir para pesquisar
Bertgg6
Bertgg6 (discussão | contribs) (Limpou toda a página)
Linha 1: Linha 1:
const bonus_type = {
    "featherweight": {
        "name": "featherweight",
        "image": "",
        "bonus-msg-small": "% Capacity Boost",
        "bonus-title": "Aumenta a Capacidade Total",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/1/1d/Fairy_Wings.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Fairy_Wings",
                "title": "Fairy Wings"
            },
            "intricate": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/3/38/Little_Bowl_of_Myrrh.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Little_Bowl_of_Myrrh",
                "title": "Little Bowl of Myrrh"
            },
            "powerful": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/0/06/Goosebump_Leather.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Goosebump_Leather",
                "title": "Goosebump Leather"
            }
        }
    },
    "epiphany": {
        "name": "epiphany",
        "image": "",
        "bonus-msg-small": " Magic Level Boost",
        "bonus-title": "Aumenta o Magic Level",
        "imbue_type": {
            "basic": {
                "bonus-value": 1,
                "image": "https://www.tibiawiki.com.br/images/a/a4/Elvish_Talisman.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Elvish_Talisman",
                "title": "Elvish Talisman"
            },
            "intricate": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/2/29/Broken_Shamanic_Staff.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Broken_Shamanic_Staff",
                "title": "Broken Shamanic Staff"
            },
            "powerful": {
                "bonus-value": 4,
                "image": "https://www.tibiawiki.com.br/images/5/57/Strand_of_Medusa_Hair.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Strand_of_Medusa_Hair",
                "title": "Strand of Medusa Hair"
            }
        }
    },
    "blockade": {
        "name": "blockade",
        "image": "",
        "bonus-msg-small": " Shield Skill Boost",
        "bonus-title": "Aumenta o Skill(habilidade) de Shield",
        "imbue_type": {
            "basic": {
                "bonus-value": 1,
                "image": "https://www.tibiawiki.com.br/images/4/45/Piece_of_Scarab_Shell.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Piece_of_Scarab_Shell",
                "title": "Piece of Scarab Shell"
            },
            "intricate": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/d/d9/Brimstone_Shell.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Brimstone_Shell",
                "title": "Brimstone Shell"
            },
            "powerful": {
                "bonus-value": 4,
                "image": "https://www.tibiawiki.com.br/images/d/d6/Frazzle_Skin.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Frazzle_Skin",
                "title": "Frazzle Skin"
            }
        }
    },
    "precision": {
        "name": "precision",
        "image": "",
        "bonus-msg-small": " Distance Skill Boost",
        "bonus-title": "Aumenta Skill de Distance",
        "imbue_type": {
            "basic": {
                "bonus-value": 1,
                "image": "https://www.tibiawiki.com.br/images/c/cf/Elven_Scouting_Glass.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Elven_Scouting_Glass",
                "title": "Elven Scouting Glass"
            },
            "intricate": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/c/ca/Elven_Hoof.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Elven_Hoof",
                "title": "Elven Hoof"
            },
            "powerful": {
                "bonus-value": 4,
                "image": "https://www.tibiawiki.com.br/images/c/cf/Metal_Spike.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Metal_Spike",
                "title": "Metal Spike"
            }
        }
    },
    "bash": {
        "name": "bash",
        "image": "",
        "bonus-msg-small": " Club Skill Boost",
        "bonus-title": "Aumenta o Skill(habilidade) de Club",
        "imbue_type": {
            "basic": {
                "bonus-value": 1,
                "image": "https://www.tibiawiki.com.br/images/b/bd/Cyclops_Toe.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Cyclops_Toe",
                "title": "Cyclops Toe"
            },
            "intricate": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/9/9b/Ogre_Nose_Ring.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Ogre_Nose_Ring",
                "title": "Ogre Nose Ring"
            },
            "powerful": {
                "bonus-value": 4,
                "image": "https://www.tibiawiki.com.br/images/4/48/Warmaster%27s_Wristguards.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Warmaster%27s_Wristguards",
                "title": "Warmaster's Wristguards"
            }
        }
    },
    "slash": {
        "name": "slash",
        "image": "",
        "bonus-msg-small": " Sword Skill Boost",
        "bonus-title": "Aumenta o Skill(habilidade) de Sword",
        "imbue_type": {
            "basic": {
                "bonus-value": 1,
                "image": "https://www.tibiawiki.com.br/images/0/04/Lion%27s_Mane.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Lion%27s_Mane",
                "title": "Lion's Mane"
            },
            "intricate": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/b/b2/Mooh%27tah_Shell.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Mooh%27tah_Shell",
                "title": "Mooh'tah Shell"
            },
            "powerful": {
                "bonus-value": 4,
                "image": "https://www.tibiawiki.com.br/images/4/41/War_Crystal.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/War_Crystal",
                "title": "War Crystal"
            }
        }
    },
    "chop": {
        "name": "chop",
        "image": "",
        "bonus-msg-small": " Axe Skill Boost",
        "bonus-title": "Aumenta o Skill(habilidade) de Axe",
        "imbue_type": {
            "basic": {
                "bonus-value": 1,
                "image": "https://www.tibiawiki.com.br/images/7/70/Orc_Tooth.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Orc_Tooth",
                "title": "Orc Tooth"
            },
            "intricate": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/1/10/Battle_Stone.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Battle_Stone",
                "title": "Battle Stone"
            },
            "powerful": {
                "bonus-value": 4,
                "image": "https://www.tibiawiki.com.br/images/0/0f/Moohtant_Horn.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Moohtant_Horn",
                "title": "Moohtant Horn"
            }
        }
    },
    "vibrancy": {
        "name": "vibrancy",
        "image": "",
        "bonus-msg-small": "% probability remove paralysis",
        "bonus-title": "",
        "imbue_type": {
            "basic": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/0/0d/Wereboar_Hooves.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Wereboar_Hooves",
                "title": "Wereboar Hooves"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/f/f8/Crystallized_Anger.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Crystallized_Anger",
                "title": "Crystallized Anger"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/f/fd/Quill.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Quill",
                "title": "Quill"
            }
        }
    },
    "swiftness": {
        "name": "swiftness",
        "image": "",
        "bonus-msg-small": " Speed Boost",
        "bonus-title": "Aumenta a sua velocidade",
        "imbue_type": {
            "basic": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/8/84/Damselfly_Wing.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Damselfly_Wing",
                "title": "Damselfly Wing"
            },
            "intricate": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/1/1c/Compass.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Compass",
                "title": "Compass"
            },
            "powerful": {
                "bonus-value": 20,
                "image": "https://www.tibiawiki.com.br/images/6/69/Waspoid_Wing.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Waspoid_Wing",
                "title": "Waspoid Wing"
            }
        }
    },
    "strike": {
        "name": "strike",
        "image": "",
        "bonus-msg-small": "% critical boost",
        "bonus-title": "Aumento de dano critico",
        "imbue_type": {
            "basic": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/f/fb/Protective_Charm.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Protective_Charm",
                "title": "Protective Charm"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/d/dd/Sabretooth.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Sabretooth",
                "title": "Sabretooth"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/f/f7/Vexclaw_Talon.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Vexclaw_Talon",
                "title": "Vexclaw Talon"
            }
        }
    },
    "void": {
        "name": "void",
        "image": "",
        "bonus-msg-small": "% mana leech",
        "bonus-title": "Roubo de mana",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/6/69/Rope_Belt.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Rope_Belt",
                "title": "Rope Belt"
            },
            "intricate": {
                "bonus-value": 5,
                "image": "https://www.tibiawiki.com.br/images/d/d6/Silencer_Claws.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Silencer_Claws",
                "title": "Silencer Claws"
            },
            "powerful": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/8/8c/Some_Grimeleech_Wings.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Some_Grimeleech_Wings",
                "title": "Some Grimeleech Wings"
            }
        }
    },
    "reap": {
        "name": "reap",
        "image": "",
        "bonus-msg-small": "% death damage conversion",
        "bonus-title": "Converte dano Fisico em dano de morte/Death",
        "imbue_type": {
            "basic": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/6/65/Pile_of_Grave_Earth.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Pile_of_Grave_Earth",
                "title": "Pile of Grave Earth"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/8/8f/Demonic_Skeletal_Hand.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Demonic_Skeletal_Hand",
                "title": "Demonic Skeletal Hand"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/0/0f/Petrified_Scream.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Petrified_Scream",
                "title": "Petrified Scream"
            }
        }
    },
    "electrify": {
        "name": "electrify",
        "image": "",
        "bonus-msg-small": "% energy damage conversion",
        "bonus-title": "Converte o dano Fisico em dano de Energia",
        "imbue_type": {
            "basic": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/b/b8/Rorc_Feather.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Rorc_Feather",
                "title": "Rorc Feathers"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/f/fc/Peacock_Feather_Fan.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Peacock_Feather_Fan",
                "title": "Peacock Feather Fan"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/d/dc/Energy_Vein.gif",
                "amount": "1",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Energy_Vein",
                "title": "Energy Vein"
            }
        }
    },
    "frost": {
        "name": "frost",
        "image": "",
        "bonus-msg-small": "% ice damage conversion",
        "bonus-title": "Converte dano Fisico em dano de Gelo",
        "imbue_type": {
            "basic": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/8/83/Frosty_Heart.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Frosty_Heart",
                "title": "Frosty Hearts"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/6/6e/Seacrest_Hair.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Seacrest_Hair",
                "title": "Seacrest Hair"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/3/3e/Polar_Bear_Paw.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Polar_Bear_Paw",
                "title": "Polar Bear Paws"
            }
        }
    },
    "venom": {
        "name": "venom",
        "image": "",
        "bonus-msg-small": "% earth damage conversion",
        "bonus-title": "Converte dano Fisico em dano de Terra",
        "imbue_type": {
            "basic": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/6/6f/Swamp_Grass.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Swamp_Grass",
                "title": "Swamp Grass"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/b/b9/Poisonous_Slime.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Poisonous_Slime",
                "title": "Poisonous Slimes"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/6/65/Slime_Heart.gif",
                "amount": "2",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Slime_Heart",
                "title": "Slime Hearts"
            }
        }
    },
    "scorch": {
        "name": "scorch",
        "image": "",
        "bonus-msg-small": "% fire damage conversion",
        "bonus-title": "Converte dano fisico em dano de fogo",
        "imbue_type": {
            "basic": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/7/7d/Fiery_Heart.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Fiery_Heart",
                "title": "Fiery Hearts"
            },
            "intricate": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/a/ac/Green_Dragon_Scale.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Green_Dragon_Scale",
                "title": "Green Dragon Scale"
            },
            "powerful": {
                "bonus-value": 50,
                "image": "https://www.tibiawiki.com.br/images/b/b8/Demon_Horn.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Demon_Horn",
                "title": "Demon Horn"
            }
        }
    },
    "vampirism": {
        "name": "vampirism",
        "image": "",
        "bonus-msg-small": "% Life Leech",
        "bonus-title": "Roubo de vida",
        "imbue_type": {
            "basic": {
                "bonus-value": 5,
                "image": "https://www.tibiawiki.com.br/images/f/f1/Vampire_Teeth.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Vampire_Teeth",
                "title": "Vampire Teeth"


            },
            "intricate": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/1/1d/Bloody_Pincers.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Bloody_Pincers",
                "title": "Bloody Pincers"
            },
            "powerful": {
                "bonus-value": 25,
                "image": "https://www.tibiawiki.com.br/images/8/85/Piece_of_Dead_Brain.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Piece_of_Dead_Brain",
                "title": "Piece of Dead Brain"
            }
        }
    },
    "lich_shroud": {
        "name": "lich_shroud",
        "image": "https://tibiawiki.com.br/images/e/e6/Cursed_Flash_Icon.gif",
        "bonus-msg-small": "% Death reduction",
        "bonus-title": "Redução dano Death",
        "imbue_type": {
            "basic": {
                "bonus-value": 2,
                "image": "https://www.tibiawiki.com.br/images/c/c2/Flask_of_Embalming_Fluid.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Flask_of_Embalming_Fluid",
                "title": "Flask of Embalming Fluid"
            },
            "intricate": {
                "bonus-value": 5,
                "image": "https://www.tibiawiki.com.br/images/f/ff/Gloom_Wolf_Fur.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Gloom_Wolf_Fur",
                "title": "Gloom Wolf Fur"
            },
            "powerful": {
                "bonus-value": 10,
                "image": "https://www.tibiawiki.com.br/images/0/08/Mystical_Hourglass.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Mystical_Hourglass",
                "title": "Mystical Hourglass"
            },
        },
    },
    "snake_skin": {
        "name": "snake_skin",
        "image": "",
        "bonus-msg-small": "% Earth reduction",
        "bonus-title": "Redução dano Terra",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/f/f6/Piece_of_Swampling_Wood.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Piece_of_Swampling_Wood",
                "title": "Piece of Swampling Wood"
            },
            "intricate": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/3/3e/Snake_Skin.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Snake_Skin",
                "title": "Snake Skin"
            },
            "powerful": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/7/7a/Brimstone_Fangs.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Brimstone_Fangs",
                "title": "Brimstone Fangs"
            },
        },
    },
    "dragon_hide": {
        "name": "dragon_hide",
        "image": "https://www.tibiawiki.com.br/images/9/95/Burning_Flash_Icon.gif",
        "bonus-msg-small": "% Fire reduction",
        "bonus-title": "Redução dano Fogo",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/d/d9/Green_Dragon_Leather.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Green_Dragon_Leather",
                "title": "Green Dragon Leather"
            },
            "intricate": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/0/01/Blazing_Bone.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Blazing_Bone",
                "title": "Blazing Bone"
            },
            "powerful": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/5/51/Draken_Sulphur.gif",
                "amount": "5",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Draken_Sulphur",
                "title": "Draken Sulphur"
            },
        },
    },
    "quara_scale": {
        "name": "quara_scale",
        "image": "https://tibiawiki.com.br/images/7/7d/Freezing_Flash_Icon.gif",
        "bonus-msg-small": "% Ice reduction",
        "bonus-title": "Redução dano gelo",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/f/fa/Winter_Wolf_Fur.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Winter_Wolf_Fur",
                "title": "Winter Wolf Fur"
            },
            "intricate": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/f/fc/Thick_Fur.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Thick_Fur",
                "title": "Thick Fur"
            },
            "powerful": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/5/54/Deepling_Warts.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Deepling_Warts",
                "title": "Deepling Warts"
            },
        },
    },
    "cloud_fabric": {
        "name": "cloud_fabric",
        "image": "https://www.tibiawiki.com.br/images/f/f4/Electrified_Flash_Icon.gif",
        "bonus-msg-small": "% Energy reduction",
        "bonus-title": "Redução dano energia",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/b/be/Crawler_Head_Plating.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Crawler_Head_Plating",
                "title": "Crawler Head Plating"
            },
            "intricate": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/d/de/Wyrm_Scale.gif",
                "amount": "15",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Wyrm_Scale",
                "title": "Wyrm Scale"
            },
            "powerful": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/a/a3/Wyvern_Talisman.gif",
                "amount": "10",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Wyvern_Talisman",
                "title": "Wyvern Talisman"
            }
        },
    },
    "demon_presence": {
        "name": "demon_presence",
        "image": "https://www.tibiawiki.com.br/images/9/98/Dazzled_Flash_Icon.gif",
        "bonus-msg-small": "% Holy reduction",
        "bonus-title": "Redução dano sagrado",
        "imbue_type": {
            "basic": {
                "bonus-value": 3,
                "image": "https://www.tibiawiki.com.br/images/3/38/Cultish_Robe.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Cultish_Robe",
                "title": "Cultish Robe"
            },
            "intricate": {
                "bonus-value": 8,
                "image": "https://www.tibiawiki.com.br/images/4/4c/Cultish_Mask.gif",
                "amount": "25",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Cultish_Mask",
                "title": "Cultish Mask"
            },
            "powerful": {
                "bonus-value": 15,
                "image": "https://www.tibiawiki.com.br/images/a/a3/Hellspawn_Tail.gif",
                "amount": "20",
                "link-tibiaWiki": "https://www.tibiawiki.com.br/wiki/Hellspawn_Tail",
                "title": "Hellspawn Tail"
            }
        },
    },
}
const bonus_group_armor = [
    bonus_type.vampirism,
    bonus_type.lich_shroud,
    bonus_type.dragon_hide,
    bonus_type.quara_scale,
    bonus_type.cloud_fabric,
    bonus_type.demon_presence
]
const item_imbuing = {
    "armor": {
        "Albino Plate": {
            "value-option": "albino_plate",
            "image": "https://www.tibiawiki.com.br/images/9/98/Albino_Plate.gif",
            "bonus": bonus_group_armor,
        },
        "Amazon Armor": {
            "value-option": "amazon_armor",
            "image": "https://www.tibiawiki.com.br/wiki/Especial:Redirecionar/file/Amazon_Armor.gif",
            "bonus": bonus_group_armor,
        },
        "Blue Robe": {
            "value-option": "blue_robe",
            "image": "",
            "bonus": bonus_group_armor,
        },
        "Chain Armor": {
            "value-option": "chain_armor",
            "image": "",
            "bonus": bonus_group_armor,
        },
        "Crown Armor": {
            "value-option": "crown_armor",
            "bonus": bonus_group_armor,
        },
        "Demon Armor": {
            "value-option": "demon_armor",
            "bonus": bonus_group_armor,
        },
        "Depth Lorica": {
            "value-option": "depth_lorica",
        },
        "Dragon Scale Mail": {
            "value-option": "dragon_scale_mail"
        },
        "Dream Shroud": {
            "value-option": "dream_shroud"
        },
        "Dwarven Armor": {
            "value-option": "dwarven_armor"
        },
        "Elite Draken Mail": {
            "value-option": "elite_draken_mail"
        },
        "Elven Mail": {
            "value-option": "elven_mail"
        },
        "Falcon Plate": {
            "value-option": "falcon_plate"
        },
        "Gnome Armor": {
            "value-option": "gnome_armor"
        },
        "Golden Amor": {
            "value-option": "golden_armor"
        },
        "Heat Core": {
            "value-option": "heat_core"
        },
        "Heavy Metal T-Shirt": {
            "value-option": "heavy_metal_t-shirt"
        },
        "Knight Armor": {
            "value-option": "knight_armor"
        },
        "Leopard Armor": {
            "value-option": "leopard_armor"
        },
        "Living Armor": {
            "value-option": "living_armor"
        },
        "Magic Plate Armor": {
            "value-option": "magic_plate_armor"
        },
        "Mammoth Fur Cape": {
            "value-option": "mammoth_fur_cape"
        },
        "Master Archer's Armor": {
            "value-option": "master_archers_armor"
        },
        "Mooh'tah Plate": {
            "value-option": "moohtah_plate"
        },
        "Noble Armor": {
            "value-option": "noble_armor"
        },
        "Ornate Chestplate": {
            "value-option": "ornate_chestplate"
        },
        "Paladin Armor": {
            "value-option": "paladin_armor"
        },
        "Prismatic Armor": {
            "value-option": "prismatic_armor"
        },
    },
    "backpack": {
        "itens": {
            "Anniversary Backpack": {
                "value-option": "anniversary_bp"
            },
            "Backpack": {
                "value-option": "bp"
            },
            "Backpack of Holding": {
                "value-option": "backpack_of_holding"
            },
            "Beach Backpack": {
                "value-option": "beach_bp"
            },
            "Birthday Backpack": {
                "value-option": "birthday_bp"
            },
            "Buggy Backpack": {
                "value-option": "buggy_bp"
            },
            "Book Backpack": {
                "value-option": "buggy_bp"
            },
            "Brocade Backpack": {
                "value-option": "brocade_bp"
            },
            "Camouflage Backpack": {
                "value-option": "camouflage_bp"
            },
            "Cake Backpack": {
                "value-option": "cake_bp"
            },
            "Crown Backpack": {
                "value-option": "crown_bp"
            },
            "Crystal Backpack": {
                "value-option": "crystal_bp"
            },
            "Demon Backpack": {
                "value-option": "demon_bp"
            },
            "Deepling Backpack": {
                "value-option": "deepling_bp"
            },
            "Dragon Backpack": {
                "value-option": "dragon_bp"
            },
            "Energetic Backpack": {
                "value-option": "energetic_bp"
            },
            "Expedition Backpack": {
                "value-option": "expedition_bp"
            },
            "Feedbag": {
                "value-option": "feedbag"
            },
            "Festive Backpack": {
                "value-option": "festive_bp"
            },
            "Fur Backpack": {
                "value-option": "fur_bp"
            },
            "Glooth Backpack": {
                "value-option": "glooth_bp"
            },
            "Heart Backpack": {
                "value-option": "heart_bp"
            },
            "Jewelled Backpack": {
                "value-option": "jewelled_bp"
            },
            "Minotaur Backpack": {
                "value-option": "minotaur_bp"
            },
            "Moon Backpack": {
                "value-option": "moon_bp"
            },
            "Mushroom Backpack": {
                "value-option": "mushroom_bp"
            },
            "Pannier Backpack": {
                "value-option": "pannier_bp"
            },
            "Pillow Backpack": {
                "value-option": "pillow_bp"
            },
            "Pirate Backpack": {
                "value-option": "pirate_bp"
            },
            "Santa Backpack": {
                "value-option": "santa_bp"
            },
            "Wolf Backpack": {
                "value-option": "wolf_bp"
            },
            "Old and Used Backpack": {
                "value-option": "old_and_used_bp"
            },
        },
        "bonus": [
        ]
    },
    "boots": {
        "itens": {
            "Badger Boots": {
            "value-option": "abadger_boots"
            },
            "Boots of Haste": {
                "value-option": "boots_of_haste"
            },
            "Bunnyslippers": {
                "value-option": "bunnyslipers"
            },
            "Coconut Shoes": {
                "value-option": "coconut_shoes"
            },
            "Crocodile Boots": {
                "value-option": "crocodile_boots"
            },
            "Crystal Boots": {
                "value-option": "crystal_boots"
            },
            "Depth Calcei": {
                "value-option": "depth_calcei"
            },
            "Dragon Scale Boots": {
                "value-option": "dragon_scale_boots"
            },
            "Draken Boots": {
                "value-option": "draken_boots"
            },
            "Fur Boots": {
                "value-option": "fur_boots"
            },
            "Glacier Shoes": {
                "value-option": "glacier_shoes"
            },
            "Golden Boots": {
                "value-option": "golden_boots"
            },
            "Guardian Boots": {
                "value-option": "guardian_boots"
            },
            "Leather Boots": {
                "value-option": "leather_boots"
            },
            "Lightning Boots": {
                "value-option": "lightning_boots"
            },
            "Magma Boots": {
                "value-option": "magma_boots"
            },
            "Metal Spats": {
                "value-option": "metal_spats"
            },
            "Oriental Shoes": {
                "value-option": "oriental_shoes"
            },
            "Pair of Dreamwalkers": {
                "value-option": "pair_of_dreamwalkers"
            },
            "Patched Boots": {
                "value-option": "patched_boots"
            },
            "Pirate Boots": {
                "value-option": "pirate_boots"
            },
            "Prismatic Boots": {
                "value-option": "prismatic_boots"
            },
            "Sandals": {
                "value-option": "sandals"
            },
            "Steel Boots": {
                "value-option": "steel_boots"
            },
            "Terra Boots": {
                "value-option": "terra_boots"
            },
            "Treader of Torment": {
                "value-option": "treader_of_torment"
            },
            "Vampire Silk Slippers": {
                "value-option": "vampire_silk_slippers"
            },
            "Zaoan Shoes": {
                "value-option": "zaoan_shoes"
            },
        },
        "bonus": [
        ]
    },
    "helmet": {
        "itens": {
            "Amazon Helmet": {
                "value-option": "amazon_helmet"
            },
            "Ancient Tiara": {
                "value-option": "ancient_tiara"
            },
            "Batwing Hat": {
                "value-option": "batwing_hat"
            },
            "Bonelord Helmet": {
                "value-option": "bonelord_helmet"
            },
            "Crown Helmet": {
                "value-option": "crown_helmet"
            },
            "Crusader Helmet": {
                "value-option": "crusader_helmet"
            },
            "Dark Whispers": {
                "value-option": "dark_whispers"
            },
            "Demon Helmet": {
                "value-option": "demon_helmet"
            },
            "Dwarven Helmet": {
                "value-option": "dwarven_helmet"
            },
            "Elite Draken Helmet": {
                "value-option": "elite_draken_helmet"
            },
            "Falcon Circlet": {
                "value-option": "falcon_circlet"
            },
            "Falcon Coif": {
                "value-option": "falcon_coif"
            },
            "Fur Cap": {
                "value-option": "fur_cap"
            },
            "Gnome Helmet": {
                "value-option": "gnome_helmet"
            },
            "Golden Helmet": {
                "value-option": "golden_helmet"
            },
            "Hat of the Mad": {
                "value-option": "hat_of_the_mad"
            },
            "Helmet of Nature": {
                "value-option": "helmet_of_nature"
            },
            "Helmet of The Lost": {
                "value-option": "helmet_of_the_lost"
            },
            "Helmet of Ultimate Terror": {
                "value-option": "helmet_of_ultimate_terror"
            },
            "Jade Hat": {
                "value-option": "jade_hat"
            },
            "Mage Hat": {
                "value-option": "mage_hat"
            },
            "Magician Hat": {
                "value-option": "magician_hat"
            },
            "Odd Hat": {
                "value-option": "odd_hat"
            },
            "Royal Helmet": {
                "value-option": "royal_helmet"
            },
            "Shamanic Mask": {
                "value-option": "shamanic_mask"
            },
            "Skull Helmet": {
                "value-option": "skull_helmet"
            },
            "Visage of the End Days": {
                "value-option": "visage_of_the_end_days"
            },
            "Warrior Helmet": {
                "value-option": "warrior_helmet"
            },
            "Witch Hat": {
                "value-option": "witch_hat"
            },
            "Yalahari Mask": {
                "value-option": "yalahari_mask"
            },
            "Zaoan Helmet": {
                "value-option": "zaoan_helmet"
            },
        },
        "bonus": [
        ]
    },
    "club": {
        "itens": {
            "Abyss Hammer": {
                "value-option": "abyss_hammer"
            },
            "Amber Staff": {
                "value-option": "amber_staff"
            },
            "Arcane Staff": {
                "value-option": "arcane_staff"
            },
            "Blessed Sceptre": {
                "value-option": "blessed_sceptre"
            },
            "Clerical Mace": {
                "value-option": "clerical_mace"
            },
            "Deepling Squelcher": {
                "value-option": "deepling_squelcher"
            },
            "Demonbone": {
                "value-option": "demonbone"
            },
            "Dragonbone Staff": {
                "value-option": "dragonbone_staff"
            },
            "Falcon Mace": {
                "value-option": "falcon_mace"
            },
            "Glooth Whip": {
                "value-option": "glooth_whip"
            },
            "Hammer of Wrath": {
                "value-option": "hammer_of_wrath"
            },
            "Heavy Mace": {
                "value-option": "heavy_mace"
            },
            "Life Preserver": {
                "value-option": "life_preserver"
            },
            "Lunar Staff": {
                "value-option": "lunar_staff"
            },
            "Mace of Destruction": {
                "value-option": "mace_of_destruction"
            },
            "Maimer": {
                "value-option": "maimer"
            },
            "Mycological Mace": {
                "value-option": "mycological_mace"
            },
            "Obsidian Truncheon": {
                "value-option": "obsidian_truncheon"
            },
            "Onyx Flail": {
                "value-option": "onyx_flail"
            },
            "Orcish Maul": {
                "value-option": "orcish_maul"
            },
            "Ornate Mace": {
                "value-option": "ornate_mace"
            },
            "Queen's Sceptre": {
                "value-option": "queens_sceptre"
            },
            "Resizer": {
                "value-option": "resizer"
            },
            "Sapphire Hammer": {
                "value-option": "sapphire_hammer"
            },
            "Shadow Sceptre": {
                "value-option": "shadow_sceptre"
            },
            "Silver Mace": {
                "value-option": "silver_mace"
            },
            "Skull Staff": {
                "value-option": "skull_staff"
            },
            "Skullcrusher": {
                "value-option": "skullcrusher"
            },
            "Snake God's Sceptre": {
                "value-option": "snake_gods_sceptre"
            },
            "Spiked Squelcher": {
                "value-option": "spiked_squelcher"
            },
            "The Stomper": {
                "value-option": "the_stomper"
            },
            "Thunder Hammer": {
                "value-option": "thunder_hammer"
            },
            "Umbral Hammer": {
                "value-option": "umbral_hammer"
            },
            "Umbral Mace": {
                "value-option": "umbral_mace"
            },
            "Umbral Master Hammer": {
                "value-option": "umbral_master_hammer"
            },
            "Umbral Master Mace": {
                "value-option": "umbral_master_mace"
            },
            "War Hammer": {
                "value-option": "war_hammer"
            },
        },
        "bonus": [
        ]
    },
    "distance": {
        "itens": {
        },
        "bonus": [
        ]
    },
    "shield": {
        "itens": {
            "Amazon Shield": {
                "value-option": "amazon_shield"
            },
            "Bonelord Shield": {
                "value-option": "bonelord_shield"
            },
            "Carapace Shield": {
                "value-option": "carapace_shield"
            },
            "Castle Shield": {
                "value-option": "castle_shield"
            },
            "Crown Shield": {
                "value-option": "crown_shield"
            },
            "Death Gaze": {
                "value-option": "death_gaze"
            },
            "Demon Shield": {
                "value-option": "demon_shield"
            },
            "Dragon Shield": {
                "value-option": "dragon_sheidl"
            },
            "Ectoplasmic Shield": {
                "value-option": "ectoplasmic_shield"
            },
            "Falcon Escutcheon": {
                "value-option": "falcon_escutcheon"
            },
            "Falcon Shield": {
                "value-option": "falcon_shield"
            },
            "Gnome Shield": {
                "value-option": "gnome_shield"
            },
            "Great Shield": {
                "value-option": "great_shield"
            },
            "Griffin Shield": {
                "value-option": "griffin_shield"
            },
            "Haunted Mirror Piece": {
                "value-option": "haunted_mirror_piece"
            },
            "Mastermind Shield": {
                "value-option": "mastermind_shield"
            },
            "Meat Shield": {
                "value-option": "meat_shield"
            },
            "Medusa Shield": {
                "value-option": "medusa_shield"
            },
            "Necromancer Shield": {
                "value-option": "necromancer_shield"
            },
            "Nightmare Shield": {
                "value-option": "nightmare_shield"
            },
            "Norse Shield": {
                "value-option": "norse_shield"
            },
            "Ornamented Shield": {
                "value-option": "ornamented_shield"
            },
            "Ornate Shield": {
                "value-option": "ornate_shield"
            },
            "Phoenix Shield": {
                "value-option": "phoenix_shield"
            },
            "Rift Shield": {
                "value-option": "rift_shield"
            },
            "Runic Ice Shield": {
                "value-option": "runic_ice_shield"
            },
            "Sentinel Shield": {
                "value-option": "sentinel_shield"
            },
            "Shield of Care": {
                "value-option": "shield_of_care"
            },
            "Shield of Corruption": {
                "value-option": "shield_of_corruption"
            },
            "Shield of the White Knight": {
                "value-option": "shield_of_the_white_knight"
            },
            "Steel Shield": {
                "value-option": "steel_shield"
            },
            "Tempest Shield": {
                "value-option": "tempest_shield"
            },
            "Tower Shield": {
                "value-option": "tower_shield"
            },
            "Vampire Shield": {
                "value-option": "vampire_shield"
            },
            "Viking Shield": {
                "value-option": "viking_shield"
            },
            "Warrior's Shield": {
                "value-option": "warriors_shield"
            },
        },
        "bonus": [
        ]
    },
    "sword": {
        "itens": {
            "Assassin Dagger": {
                "value-option": "assassin_dagger"
            },
            "Berserker": {
                "value-option": "berserker"
            },
            "Blacksteel Sword": {
                "value-option": "Blade of Corruption"
            },
            "Blade of Corruption": {
                "value-option": "blade_of_corruption"
            },
            "Blade of Destruction": {
                "value-option": "blade_of_destruction"
            },
            "Bloody Edge": {
                "value-option": "bloody_edge"
            },
            "Bright Sword": {
                "value-option": "bright_sword"
            },
            "Broadsword": {
                "value-option": "broadsword"
            },
            "Warrior's Shield": {
                "value-option": "warriors_shield"
            },
        },
        "bonus": [
        ]
    },
    "axe": {
        "itens": {
        },
        "bonus": [
        ]
    },
    "spellbook": {
        "itens": {
            "Book of Lies": {
                "value-option": "book_of_lies"
            },
            "Brain in a Jar": {
                "value-option": "brain_in_a_jar"
            },
            "Depth Scutum": {
                "value-option": "depth_scutum"
            },
            "Shoulder Plate": {
                "value-option": "shoulder_plate"
            },
            "Spellbook": {
                "value-option": "spellbook"
            },
            "Spellbook of Enlightment": {
                "value-option": "spellbook_of_enlightment"
            },
            "Spellbook of Warding": {
                "value-option": "spellbook_of_warding"
            },
            "Spirit Guide": {
                "value-option": "spirit_guide"
            },
            "Umbral Master Spellbook": {
                "value-option": "umbral_master_spellbook"
            },
            "Umbral Spellbook": {
                "value-option": "umbral_spellbook"
            },
            "Wooden Spellbook": {
                "value-option": "wooden_spellbook"
            },
        },
        "bonus": [
        ]
    },
    "wandRod": {
        "itens": {
        },
        "bonus": [
        ]
    }
}
var current_item = {
    "categoria": "none",
    "itemProp": "",
    "imbueType": "basic",
    "protectionMoney": 10000,
    "protectClick": false,
    "imbueMoney": 5000,
    "totalMoney": 15000,
    "bonusSelected": "none",
};
/*Função que verifica se está selecionada uma categoria válida, se sim chama a função para exibir os itens
da respectiva categoria.*/
function categoriaChange() {
    const categoria_select = document.getElementById("categoria_select");
    var item_select = document.getElementById("item_select");
    current_item.categoria = categoria_select.value;
    removeBonusSelected();
    current_item.itemProp = "";
    if (current_item.categoria != "none") {
        item_select.disabled = false;
        showOptionItens();
    }
    else {
        item_select.disabled = true;
        removeOptions(item_select);
        document.getElementById("itemImg").style = "background-image= none";
        removeAllElementsDiv(document.getElementById("divBonus"));
    }
}
//Função que adiciona os itens (no select), de acordo com a categoria
function showOptionItens() {
    var item_select = document.getElementById("item_select");
    removeOptions(item_select);
    //popula novamente o select de item
    var itens_categoria = item_imbuing[current_item.categoria];
    for (var key of Object.keys(itens_categoria)) {
        var option = document.createElement("option");
        option.text = key;
        option.value = itens_categoria[key]["value-option"];
        item_select.add(option);
    }
    changeItem();
}
function changeItem() {
    const item_select = document.getElementById("item_select");
    const opt_item_select = item_select.options[item_select.selectedIndex];
    const itemImg = document.getElementById("itemImg");
    current_item.itemProp = item_imbuing[current_item.categoria][opt_item_select.text];
    itemImg.style.backgroundImage = "url(" + current_item.itemProp.image + ")";
    showBonusImbue();
}
function bonusRadioChange(imbueValue) {
    current_item.imbueType = imbueValue;
    switch (current_item.imbueType) {
        case 'basic': {
            current_item.protectionMoney = 10000;
            current_item.imbueMoney = 5000;
            current_item.totalMoney = getTotalMoney();
            break;
        }
        case 'intricate': {
            current_item.protectionMoney = 30000;
            current_item.imbueMoney = 25000;
            current_item.totalMoney = getTotalMoney();
            break;
        }
        case 'powerful': {
            current_item.protectionMoney = 50000;
            current_item.imbueMoney = 100000;
            current_item.totalMoney = getTotalMoney();
            break;
        }
    }
    document.getElementById("protectMoney").textContent = current_item.protectionMoney.toLocaleString();
    document.getElementById("imbueMoney").textContent = current_item.imbueMoney.toLocaleString();
    document.getElementById("totalMoney").textContent = current_item.totalMoney.toLocaleString();
    showBonusImbue();
}
function showBonusImbue() {
    removeBonusSelected();
    var divBonus = document.getElementById("divBonus");
    var bonus = current_item.itemProp.bonus;
    removeAllElementsDiv(divBonus);
    for (var i in bonus) {
        var div_block = document.createElement("div");
        var div_inner_block = document.createElement("div");
        var p = document.createElement("p");
        //adicionando texto do bonus
        p.textContent = bonus[i].imbue_type[current_item.imbueType]["bonus-value"] + bonus[i]["bonus-msg-small"];
        //adicionando imagem
        div_inner_block.style.backgroundImage = "url(" + bonus[i].image + ")";
        //add divs e p
        div_block.onclick = function () { bonus_selected(this) }
        div_block.dataset.type = bonus[i].name;
        div_block.appendChild(div_inner_block);
        div_block.appendChild(p);
        div_block.classList.add("block");
        div_block.title = bonus[i]["bonus-title"];
        divBonus.appendChild(div_block);
    }
}
function bonus_selected(element) {
    removeBonusSelected();
    var chieldrens = document.getElementsByClassName("selected");
    Array.prototype.slice.call(chieldrens).forEach(function (element) {
        element.classList.remove("selected");
    });
    element.classList.add("selected");
    current_item.bonusSelected = bonus_type[element.dataset.type];
    showItensForImbue();
}
function showItensForImbue() {
    //itens necessarios para imbuir
    var itemForImbue1 = document.getElementById("item1");
    var itemForImbue2 = document.getElementById("item2");
    var itemForImbue3 = document.getElementById("item3");
    //quantidade dos items
    var quantItemForImbue1 = document.getElementById("quant_item1");
    var quantItemForImbue2 = document.getElementById("quant_item2");
    var quantItemForImbue3 = document.getElementById("quant_item3");
    var tdItem1 = document.getElementById("tdItem1");
    var tdItem2 = document.getElementById("tdItem2");
    var tdItem3 = document.getElementById("tdItem3");
    switch (current_item.imbueType) {
        case 'basic': {
            putNewFatherTagAnchor(tdItem1, itemForImbue1, "basic");
            itemForImbue1.style.backgroundImage = "url(" + current_item.bonusSelected.imbue_type.basic.image + ")";
            quantItemForImbue1.textContent = current_item.bonusSelected.imbue_type.basic.amount;
            itemForImbue2.style.backgroundImage = "none";
            quantItemForImbue2.textContent = "0";
            itemForImbue3.style.backgroundImage = "none";
            quantItemForImbue3.textContent = "0";
            break;
        }
        case 'intricate': {
            putNewFatherTagAnchor(tdItem1, itemForImbue1, "basic");
            putNewFatherTagAnchor(tdItem2, itemForImbue2, "intricate");
            itemForImbue1.style.backgroundImage = "url(" + current_item.bonusSelected.imbue_type.basic.image + ")";
            quantItemForImbue1.textContent = current_item.bonusSelected.imbue_type.basic.amount;
            itemForImbue2.style.backgroundImage = "url(" + current_item.bonusSelected.imbue_type.intricate.image + ")";
            quantItemForImbue2.textContent = current_item.bonusSelected.imbue_type.intricate.amount;
            itemForImbue3.style.backgroundImage = "none";
            quantItemForImbue3.textContent = "0";
            break;
        }
        case 'powerful': {
            putNewFatherTagAnchor(tdItem1, itemForImbue1, "basic");
            putNewFatherTagAnchor(tdItem2, itemForImbue2, "intricate");
            putNewFatherTagAnchor(tdItem3, itemForImbue3, "powerful");
            itemForImbue1.style.backgroundImage = "url(" + current_item.bonusSelected.imbue_type.basic.image + ")";
            quantItemForImbue1.textContent = current_item.bonusSelected.imbue_type.basic.amount;
            itemForImbue2.style.backgroundImage = "url(" + current_item.bonusSelected.imbue_type.intricate.image + ")";
            quantItemForImbue2.textContent = current_item.bonusSelected.imbue_type.intricate.amount;
            itemForImbue3.style.backgroundImage = "url(" + current_item.bonusSelected.imbue_type.powerful.image + ")";
            quantItemForImbue3.textContent = current_item.bonusSelected.imbue_type.powerful.amount;
            break;
        }
    }
}
//remove as opções (<option></option>) de um select qualquer (<select></select>)
function removeOptions(selectbox) {
    var i;
    for (i = selectbox.options.length - 1; i >= 0; i--) {
        selectbox.remove(i);
    }
}
function removeAllElementsDiv(div) {
    while (div.firstChild) {
        div.removeChild(div.firstChild);
    }
}
function loadBody() {
    bonusRadioChange(current_item.imbueType);
}
function protectionClick() {
    var protect = document.getElementsByClassName("protectionCharm")[0];
    current_item.protectClick = !current_item.protectClick;
    document.getElementById("totalMoney").textContent = getTotalMoney().toLocaleString();
    if (current_item.protectClick) {
        protect.style.backgroundColor = "red";
        protect.style.color = "white";
    } else {
        protect.style.backgroundColor = "white";
        protect.style.color = "black";
    }
}
function getTotalMoney() {
    return current_item.protectClick ? current_item.protectionMoney + current_item.imbueMoney : current_item.imbueMoney; q
}
function putNewFatherTagAnchor(oldfather, oldChild, imbueType) {
    var a = document.createElement("a");
    a.href = current_item.bonusSelected.imbue_type[imbueType]["link-tibiaWiki"];
    a.target = "_blank";
    oldChild.title = current_item.bonusSelected.imbue_type[imbueType].title;
    oldfather.replaceChild(a, oldChild);
    a.appendChild(oldChild);
}
function removeBonusSelected() {
    current_item.bonusSelected = "none";
    var item1 = document.getElementById("item1");
    var item2 = document.getElementById("item2")
    var item3 = document.getElementById("item3")
    var quantItem1 = document.getElementById("quant_item1")
    var quantItem2 = document.getElementById("quant_item2")
    var quantItem3 = document.getElementById("quant_item3")
    var tdItem1 = document.getElementById("tdItem1")
    var tdItem2 = document.getElementById("tdItem2")
    var tdItem3 = document.getElementById("tdItem3")
    if (tdItem1.children[0].childElementCount > 0) {
        tdItem1.replaceChild(item1, tdItem1.children[0]);
    }
    if (tdItem2.children[0].childElementCount > 0) {
        tdItem2.replaceChild(item2, tdItem2.children[0]);
    }
    if (tdItem3.children[0].childElementCount > 0) {
        tdItem3.replaceChild(item3, tdItem3.children[0]);
    }
    item1.style.backgroundImage = "none";
    item1.title = "";
    item2.style.backgroundImage = "none";
    item2.title = "";
    item3.style.backgroundImage = "none";
    item3.title = "";
    quantItem1.textContent = "0";
    quantItem2.textContent = "0";
    quantItem3.textContent = "0";
}

Edição das 23h18min de 3 de março de 2019