public void Infect() { Sickness modifier = base.master.modifier; componentData = modifier.Infect(base.gameObject, base.master, base.master.exposureInfo); if ((UnityEngine.Object)PopFXManager.Instance != (UnityEngine.Object)null) { PopFXManager.Instance.SpawnFX(PopFXManager.Instance.sprite_Negative, string.Format(DUPLICANTS.DISEASES.INFECTED_POPUP, modifier.Name), base.gameObject.transform, 1.5f, true); } }
public void Cure() { Sickness modifier = base.master.modifier; base.gameObject.GetComponent <Modifiers>().sicknesses.Cure(modifier); modifier.Cure(base.gameObject, componentData); if ((UnityEngine.Object)PopFXManager.Instance != (UnityEngine.Object)null) { PopFXManager.Instance.SpawnFX(PopFXManager.Instance.sprite_Plus, string.Format(DUPLICANTS.DISEASES.CURED_POPUP, modifier.Name), base.gameObject.transform, 1.5f, true); } if (!string.IsNullOrEmpty(modifier.recoveryEffect)) { Effects component = base.gameObject.GetComponent <Effects>(); if ((bool)component) { component.Add(modifier.recoveryEffect, true); } } }