Ejemplo n.º 1
0
 public override void SetUpSystems()
 {
     base.SetUpSystems();
     if (GeneratesThis == null)
     {
         GeneratesThis = RelatedPart.HealthMaster.CirculatorySystem.BloodType;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes the body part as part of the circulatory system
        /// </summary>
        public void BloodInitialise()
        {
            BloodContainer = this.GetComponent <ReagentContainerBody>();
            if (BloodContainer.ContentsSet == false)
            {
                if (isBloodCirculated)
                {
                    HealthMaster.CirculatorySystem.ReadyBloodPool.TransferTo(BloodContainer.CurrentReagentMix, BloodStoredMax);
                    //BloodContainer.CurrentReagentMix.Add(Nutriment, 0.01f);
                }
                BloodContainer.ContentsSet = true;
            }
            if (bloodType == null)
            {
                bloodType = HealthMaster.CirculatorySystem.BloodType;
            }

            AddModifier(HungerModifier);
        }
 public void SetBloodType(BloodType inBloodType)
 {
     bloodType = inBloodType;
 }