if ( type instanceof MiscType && ((MiscType)type).isShield() ){ MiscType shield = (MiscType)type; baseDamageAbsorptionRate = shield.baseDamageAbsorptionRate; baseDamageCapacity = shield.baseDamageCapacity; damageTaken = shield.damageTaken; }
    public Mounted(Entity entity, EquipmentType type) {        this.entity = entity;        this.type = type;        this.typeName = type.getInternalName();        if (type instanceof AmmoType) {            shotsLeft = ((AmmoType)type).getShots();        }        if (type instanceof MiscType && type.hasFlag(MiscType.F_MINE)) {            this.mineType = MINE_CONVENTIONAL;         }    }