class ArmorPiece {
    protected int maxDurability;
    protected int currentDurability;
    
    public ArmorPiece(int durability) {
        this.maxDurability = durability;
        this.currentDurability = durability;
    }
    
    public double getDamageBoostRatio() {
        return 1.0 - (double)currentDurability / maxDurability;
    }

    public void degrade(int amount) {
        currentDurability = Math.max(0, currentDurability - amount);
    }
    
    public int getCurrentDurability() {
        return currentDurability;
    }
}
class BerserkerWarrior {
    private ArmorPiece chestplate; 
    private ArmorPiece helmet;
    private int baseAttack = 100;
        int finalDamage = (int)(baseAttack * (1 + totalBoost));
        chestplate.degrade(100);
        helmet.degrade(100);
        
        return finalDamage;
    }
}
public class HighRiskCombat {
    public static void main(String[] args) {
        BerserkerWarrior warrior = new BerserkerWarrior();
        while(warrior.hasArmorLeft()) {
            warrior.displayStatus();
        }
    }
}
//by LD