public override void SetUpSystems() { base.SetUpSystems(); if (GeneratesThis == null) { GeneratesThis = RelatedPart.HealthMaster.CirculatorySystem.BloodType; } }
/// <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; }