@Override
  public int getChance(int unitType, Pilot pilot) {
    if (pilot.getSkills().has(this)) {
      return 0;
    }

    String chance = "chancefor" + getAbbreviation() + "for" + Unit.getTypeClassDesc(unitType);

    SHouse house = CampaignMain.cm.getHouseFromPartialString(pilot.getCurrentFaction());

    if (house == null) {
      return CampaignMain.cm.getIntegerConfig(chance);
    }

    return house.getIntegerConfig(chance);
  }
 @Override
 public void modifyPilot(Pilot pilot) {
   pilot.addMegamekOption(new MegaMekPilotOption("gunnery_laser", true));
   // pilot.setBvMod(pilot.getBVMod() + 0.02);
 }
Beispiel #3
0
 @Override
 public void modifyPilot(Pilot p) {
   // super.addToPilot(p);
   p.addMegamekOption(new MegaMekPilotOption("vdni", true));
   p.setBvMod(p.getBVMod() + 0.01);
 }