Class EnhancedImagingAugmentor

java.lang.Object
mekhq.campaign.universe.commandGeneration.EnhancedImagingAugmentor

public final class EnhancedImagingAugmentor extends Object
Fits the Clans' enhanced imaging implant to a freshly generated command's warriors.

The rules are MegaMek's - which Clans take the implant more readily, how many warriors take it, and which units it works with all come from ClanEnhancedImagingAugmentor, so a campaign and a skirmish do not disagree about how common EI warriors are. What is MekHQ's own is where the implant is written: a campaign's warriors are Persons, and the crew carried on the entity is rebuilt from them whenever the unit is reset. Writing to the entity's crew, as MegaMek does, would therefore be undone the moment the unit was touched.

EI warriors serve together rather than appearing one to a star, so the roll is made once per formation and the whole formation takes it or none of it does.

  • Method Details

    • augment

      public static void augment(Campaign campaign, @Nullable String generationFaction, List<Person> generatedPersons)
      Fits the implant to the warriors of whichever generated formations take it.
      Parameters:
      campaign - the campaign the command was generated into
      generationFaction - the faction the command was generated for, which decides both whether the implant applies at all and how readily it is taken
      generatedPersons - every person this generation created