function init(hero) {
    hero.setName("Kakashi/Naruto Pre Shippuden");
    hero.setTier(5);
    
    hero.setHelmet("Headband");
    hero.setChestplate("Shirt");
    hero.setLeggings("item.superhero_armor.piece.pants");
    hero.setBoots("item.superhero_armor.piece.boots");
    
    hero.addPowers("tmfp:sharingan");
    hero.addAttribute("FALL_RESISTANCE", 10.0, 0);
    hero.addAttribute("PUNCH_DAMAGE", 5.0, 0);
    hero.addAttribute("SPRINT_SPEED", 0.6, 1);
    hero.addAttribute("JUMP_HEIGHT", 2.5, 0);
    hero.addAttribute("STEP_HEIGHT", 0.5, 0);
    
    hero.addKeyBind("UTILITY_BELT", "key.utilityBelt", 1);
    hero.addKeyBind("FIRE", "Toggle Fire Jutsu", 1);
    hero.addKeyBind("SLOW_MOTION", "key.slowMotion", 2);
    hero.addKeyBind("CHARGE_ICE", "Raikiri", 3);
    hero.addKeyBind("SHARINGAN", "Toggle Sharingan", 4);
    hero.addKeyBind("CURSE_MARK", "Toggle Leaf Village Secret Ultimate Taijutsu:One Thousand Years of Death", 5);

    hero.addAttributeProfile("SHARINGAN", sharinganProfile);
    hero.addAttributeProfile("CURSE_MARK", curse_markProfile);
    hero.setAttributeProfile(getProfile);
    hero.setKeyBindEnabled(isKeyBindEnabled);
    hero.setModifierEnabled(isModifierEnabled);
}
function isKeyBindEnabled(entity, keyBind) {
    switch (keyBind) {    
    case "SHARINGAN":
        return !entity.getData('tmfp:dyn/curse_mark');
    case "CURSE_MARK":
        return entity.getHeldItem().isEmpty() && !entity.getData('tmfp:dyn/sharingan');
    case "CHARGE_ICE":
        return entity.getHeldItem().isEmpty() && entity.getData('tmfp:dyn/sharingan') && !entity.getData('tmfp:dyn/curse_mark');
    case "FIRE":
        return entity.isSneaking() && !entity.getData('tmfp:dyn/curse_mark');
    case "UTILITY_BELT":
        return !entity.isSneaking() && !entity.getData('tmfp:dyn/flame_mod') && !entity.getData('tmfp:dyn/curse_mark');
    case "SLOW_MOTION":
        return entity.getData('tmfp:dyn/sharingan') && !entity.getData('tmfp:dyn/curse_mark');
    default:
        return true;
    }
}
function sharinganProfile(profile) {
    profile.inheritDefaults();
    profile.addAttribute("SPRINT_SPEED", 1.2, 1);
}
function curse_markProfile(profile) {
    profile.addAttribute("KNOCKBACK", 20.0, 0);
    profile.inheritDefaults();
}
function getProfile(entity) {
    if (entity.getData("tmfp:dyn/curse_mark")) {
        return "CURSE_MARK";
    }
    return entity.getData("tmfp:dyn/sharingan") ? "SHARINGAN" : null;
}
function isModifierEnabled(entity, modifier) {
    switch (modifier.name()) {
    case "fiskheroes:fireball":
        return entity.getData("tmfp:dyn/flame_mod");
    case "fiskheroes:equipment":
        return !entity.getData("tmfp:dyn/flame_mod");
    case "fiskheroes:damage_bonus":
        return modifier.id() == "chidori" == (!entity.getData("tmfp:dyn/curse_mark"));
    default:
        return true;
    }
}