示例#1
0
 /// <summary>
 /// Handles the body part's use of blood for each tick
 /// </summary>
 protected virtual void BloodUpdate()
 {
     if (isBloodCirculated == false)
     {
         return;
     }
     ConsumeReagents();
     ConsumeNutriments();
     MetaboliseReactions();
     //Assuming it's changed in this update since none of them use the Inbuilt functions
     BloodContainer.OnReagentMixChanged?.Invoke();
     BloodContainer.ReagentsChanged();
 }
        /// <summary>
        /// Handles the body part's use of blood for each tick
        /// </summary>
        protected virtual void BloodUpdate()
        {
            if (isBloodCirculated == false)
            {
                return;
            }
            ConsumeReagents();
            if (CanGetHungry)
            {
                ConsumeNutriments();
            }

            if (HasNaturalToxicity)
            {
                NaturalToxicity();
            }

            //Assuming it's changed in this update since none of them use the Inbuilt functions
            BloodContainer.OnReagentMixChanged?.Invoke();
            BloodContainer.ReagentsChanged();
            //plz No modify BloodContainer before MetaboliseReactions
            MetaboliseReactions();
        }