@Override public String getLocationDamage(int loc) { String toReturn = ""; boolean first = true; if (getLocationStatus(loc) == ILocationExposureStatus.BREACHED) { toReturn += "BREACH"; first = false; } if (isTurretLocked(loc)) { if (!first) { toReturn += ", "; } toReturn += "Locked"; first = false; } if (isStabiliserHit(loc)) { if (!first) { toReturn += ", "; } toReturn += "Stabilizer hit"; first = false; } return toReturn; }
@Override public void updateConditionFromPart() { if(null != unit && unit.getEntity() instanceof Tank) { if(hits > 0 && !((Tank)unit.getEntity()).isStabiliserHit(loc)) { ((Tank)unit.getEntity()).setStabiliserHit(loc); } else if(hits == 0 && ((Tank)unit.getEntity()).isStabiliserHit(loc)) { ((Tank)unit.getEntity()).clearStabiliserHit(loc); } } }
+ " Stabilizer</b><br></html>"), gridBagConstraints); int hits = 0; if (tank.isStabiliserHit(loc)) { hits = 1;
@Override public void updateConditionFromEntity(boolean checkForDestruction) { if(null != unit && unit.getEntity() instanceof Tank) { int priorHits = hits; if(((Tank)unit.getEntity()).isStabiliserHit(loc)) { hits = 1; } else { hits = 0; } if(checkForDestruction && hits > priorHits && Compute.d6(2) < campaign.getCampaignOptions().getDestroyPartTarget()) { remove(false); return; } } }
&& ((Tank) entity).isStabiliserHit(loc)) { thisLoc.append(indentStr(indentLvl+1) + "<stabilizer isHit=\"true\"/>\n");
&& tank.isStabiliserHit(VTOL.LOC_ROTOR); boolean minorMovementDamage = tank .hasMinorMovementDamage();
if (!isStabiliserHit(loc)) { for (Mounted m : getWeaponList()) { if (m.getLocation() == loc) { if (!isStabiliserHit(loc)) { for (Mounted m : getWeaponList()) { if (m.getLocation() == loc) { switch (roll) { case 6: if (!isStabiliserHit(loc)) { for (Mounted m : getWeaponList()) { if (m.getLocation() == loc) { if (!isStabiliserHit(loc)) { for (Mounted m : getWeaponList()) { if (m.getLocation() == loc) {
toHit.addModifier(sensors, "sensor damage"); if (tank.isStabiliserHit(weapon.getLocation())) { toHit.addModifier(Compute.getAttackerMovementModifier(game, tank.getId()).getValue(), "stabiliser damage");