*/
private void checkForIndustrialCrit() {
for (Enumeration<Entity> i = game.getEntities(); i.hasMoreElements();) {
final Entity entity = i.nextElement();
if ((entity instanceof Mech) && ((Mech)entity).isIndustrial()) {
Mech mech = (Mech)entity;
// should we check for critical damage?
if (mech.isCheckForCrit()) {
Report r = new Report(5530);
r.addDesc(mech);
r.subject = mech.getId();
r.newlines = 0;
vPhaseReport.add(r);
// for being hit by a physical weapon
if (mech.getLevelsFallen() == 0) {
r = new Report(5531);
r.subject = mech.getId();
// or for falling
} else {
r = new Report(5532);
r.subject = mech.getId();
r.add(mech.getLevelsFallen());
}
vPhaseReport.add(r);
vPhaseReport.addAll(criticalEntity(mech,
mech.rollHitLocation(ToHitData.HIT_NORMAL,
ToHitData.SIDE_FRONT).getLocation(),
mech.getLevelsFallen()));
}
}
}
}