if (loc == Mech.LOC_RLEG || loc == Mech.LOC_LLEG) { game.addPSR(new PilotingRollData(en.getId(), PilotingRollData.AUTOMATIC_FAIL, 5, "leg breached"));
if ((loc == Mech.LOC_RLEG || loc == Mech.LOC_LLEG) && isMoving) { PilotingRollData rollTarget = en.checkWaterMove(game.board.getHex(en.getPosition()).levelOf(Terrain.WATER)); doSkillCheckInPlace(en, rollTarget);
    private String breachLocation(Entity en, int loc) {        String desc = new String();        if (en.getInternal(loc) < 0 || en.getLocationStatus(loc) < Entity.LOC_NORMAL) { //already destroyed or breached? don't bother            return desc;        }        desc += "<<<" + en.getLocationAbbr(loc) + " BREACHED>>>";        en.setLocationStatus(loc, Entity.LOC_BREACHED);        //equipment and crits will be marked in applyDamage?        // equipment marked missing        for (Enumeration i = en.getEquipment(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.getLocation() == loc) {                mounted.setBreached(true);            }        }        // all critical slots set as missing        for (int i = 0; i < en.getNumberOfCriticals(loc); i++) {            final CriticalSlot cs = en.getCritical(loc, i);            if (cs != null) {                cs.setBreached(true);            }        }        //if it's a leg, the entity falls        if (loc == Mech.LOC_RLEG || loc == Mech.LOC_LLEG) {            game.addPSR(new PilotingRollData(en.getId(), PilotingRollData.AUTOMATIC_FAIL, 5, "leg breached"));        }        //Check location for engine/cockpit breach and report accordingly       if (loc == Mech.LOC_CT) {             desc += destroyEntity(en, "hull breach");        }        if (loc == Mech.LOC_HEAD) {            en.crew.setDoomed(true);            desc += destroyEntity(en, "hull breach");            desc += "\n*** " + en.getDisplayName() + " Pilot Drowned! ***";        }        // dependent locations considered breached        if (en.getDependentLocation(loc) != Mech.LOC_NONE) {            desc += breachLocation(en, en.getDependentLocation(loc));        }        return desc;    }