if ( weightMod != 0 ) { reportStr.append(": ").append(weightMod) .append(" weight mod"); }  game.addPSR(new PilotingRollData(entity.getId(), damMod + weightMod, reportStr.toString()));
PilotingRollData damPRD = new PilotingRollData(entity.getId(), damMod + weightMod, reportStr.toString()); damPRD.setCumulative(false); game.addPSR(damPRD);
    private void checkFor20Damage() {        for (Enumeration i = game.getEntities(); i.hasMoreElements();) {            final Entity entity = (Entity)i.nextElement();            if (entity.getMovementType() == Entity.MovementType.BIPED ||            entity.getMovementType() == Entity.MovementType.QUAD) {                // if this mech has 20+ damage, add another roll to the list.                if (entity.damageThisPhase >= 20) {                    if ( game.getOptions().booleanOption("maxtech_round_damage") ) {                      int damMod = (entity.damageThisPhase / 20);                      int weightMod = 0;                      StringBuffer reportStr = new StringBuffer();                      reportStr.append(entity.damageThisPhase)                          .append(" damage");                      switch ( entity.getWeightClass() ) {                        case Entity.WEIGHT_LIGHT:                          weightMod = 1;                          break;                        case Entity.WEIGHT_MEDIUM:                          weightMod = 0;                          break;                        case Entity.WEIGHT_HEAVY:                          weightMod = -1;                          break;                        case Entity.WEIGHT_ASSAULT:                          weightMod = -2;                          break;                      }                      if ( weightMod != 0 ) {                          reportStr.append(": ").append(weightMod)                              .append(" weight mod");                      }                      game.addPSR(new PilotingRollData(entity.getId(), damMod + weightMod, reportStr.toString()));                    } else {                      game.addPSR(new PilotingRollData(entity.getId(), 1, "20+ damage"));                    }                }            }        }    }