Ejemplo n.º 1
0
        protected void ResetInjuryOptionEnabledState(CustomPawn pawn)
        {
            disabledInjuryOptions.Clear();
            InjuryManager injuryManager = PrepareCarefully.Instance.HealthManager.InjuryManager;

            foreach (var injuryOption in injuryManager.Options)
            {
                InjuryOption option = injuryOption;
                if (option.IsOldInjury)
                {
                    continue;
                }
                Injury injury = pawn.Injuries.FirstOrDefault((Injury i) => {
                    return(i.Option == option);
                });
                if (injury != null)
                {
                    disabledInjuryOptions.Add(injuryOption);
                }
            }
        }
Ejemplo n.º 2
0
 public HealthManager()
 {
     implantManager = new ImplantManager();
     injuryManager  = new InjuryManager();
 }
Ejemplo n.º 3
0
 public HealthManager()
 {
     implantManager = new ImplantManager();
     injuryManager  = new InjuryManager();
     InitializeBodyParts();
 }