function init(hero) {
    hero.setName("Iron Fist");
    hero.setTier(6);
    hero.setHelmet("item.superhero_armor.piece.helmet");
    hero.setChestplate("item.superhero_armor.piece.chestpiece");
    hero.setLeggings("item.superhero_armor.piece.pants");
    hero.setBoots("item.superhero_armor.piece.boots");
	
    hero.addPowers( "fiskheroes:leaping", "fiskheroes:enhanced_reflexes", "pack:steel_transformation", "fiskheroes:cellular_regeneration");
    
	  	   hero.addAttribute("WEAPON_DAMAGE", 9, 0);
    hero.addAttribute("PUNCH_DAMAGE", 12, 0);
    hero.addAttribute("FALL_RESISTANCE", 25.0, 0);
    hero.addAttribute("JUMP_HEIGHT", 1.4, 0);
    hero.addAttribute("SPRINT_SPEED", 0.6, 1);
    hero.addAttribute("STEP_HEIGHT", 1.2, 0);
	 
	  hero.addKeyBind("STEEL_TRANSFORM", "Chi Fist", 1);
    
    hero.addAttributeProfile("STEEL", steelProfile);
    hero.setAttributeProfile(getAttributeProfile);
    hero.setModifierEnabled(isModifierEnabled);
 
}

function steelProfile(profile) {
    profile.addAttribute("PUNCH_DAMAGE", 25.0, 0);
    profile.addAttribute("JUMP_HEIGHT", 0.8, 0);
    profile.addAttribute("SPRINT_SPEED", 0.3, 1);
}

function getAttributeProfile(entity) {
    return entity.getData("fiskheroes:dyn/steeled") ? "STEEL" : null;
}

function isModifierEnabled(entity, modifier) {
    return modifier.name() == "fiskheroes:transformation" || modifier.name() == "fiskheroes:cooldown" || entity.getData("fiskheroes:dyn/steeled");
}
