Class InjuryUtil

java.lang.Object
mekhq.campaign.mod.am.InjuryUtil

public final class InjuryUtil extends Object
Static helper methods implementing the "advanced medical" sub-system
  • Constructor Details

    • InjuryUtil

      public InjuryUtil()
  • Method Details

    • resolveDailyHealing

      public static void resolveDailyHealing(Campaign c, Person p)
      Run a daily healing check
    • resolveAfterCombat

      public static void resolveAfterCombat(Campaign c, Person p, int hits)
      Resolve injury modifications in case of entering combat with active ones
    • resolveCombatDamage

      public static void resolveCombatDamage(Campaign c, Person person, int hits)
      Resolve effects of damage suffered during combat
    • genInjuries

      public static Collection<Injury> genInjuries(Campaign c, Person p, int hits)
      Generate combat injuries spread through the whole body
    • genInjuries

      public static Collection<Injury> genInjuries(Campaign c, Person p, BodyLocation loc, int hits)
      Generate combat injuries for a specific body location
    • genHealingTime

      public static int genHealingTime(Campaign c, Person p, Injury i)
      Called when creating a new injury to generate a slightly randomized healing time
    • genHealingTime

      public static int genHealingTime(Campaign c, Person p, InjuryType itype, int severity)
      Called when creating a new injury to generate a slightly randomized healing time
    • genMedicalTreatment

      public static List<GameEffect> genMedicalTreatment(Campaign c, Person p, Person doc)
      Generate the effects of a doctor dealing with injuries (frequency depends on campaign settings)
    • genNaturalHealing

      public static List<GameEffect> genNaturalHealing(Campaign c, Person p)
      Generate the effects of "natural" healing (daily)
    • genUntreatedEffects

      public static List<GameEffect> genUntreatedEffects(Campaign c, Person p)
      Generate the effects not being under proper treatment (daily)