Example #1
0
        public bool isSuccessfulTreatment(Sim simToPresentTo)
        {
            BuffInstance badBuff = simToPresentTo.BuffManager.GetElement(BuffNames.NauseousPet);

            // Cure the nastiest buff first if there are multiple types of nausea.
            if (simToPresentTo.BuffManager.HasElement(LoadThis.buffNameStomachFluPet))
            {
                badBuff = simToPresentTo.BuffManager.GetElement(LoadThis.buffNameStomachFluPet);
            }
            else if (simToPresentTo.BuffManager.HasElement(LoadThis.buffNameFoodPoisingPet))
            {
                badBuff = simToPresentTo.BuffManager.GetElement(LoadThis.buffNameFoodPoisingPet);
            }
            if (badBuff == null)
            {
                return(false);
            }
            EWMedicineCatSkill skill = Actor.SkillManager.GetSkill <EWMedicineCatSkill>(EWMedicineCatSkill.SkillNameID);

            if (skill == null)
            {
                return(false);
            }
            return(skill.TreatSim(simToPresentTo, badBuff, Target.GetLocalizedName()));
        }
Example #2
0
		public bool isSuccessfulTreatment(Sim simToPresentTo)
		{
			BuffInstance fleaBuff = simToPresentTo.BuffManager.GetElement(BuffNames.GotFleasPet);
			if (fleaBuff == null)
            {
				return false;
			}
			EWMedicineCatSkill skill = Actor.SkillManager.GetSkill<EWMedicineCatSkill>(EWMedicineCatSkill.SkillNameID);
			if (skill == null)
			{
				return false;
			}
			return skill.TreatSim(simToPresentTo, fleaBuff, Target.GetLocalizedName());
		}
        public override bool isSuccessfulTreatment(Sim simToPresentTo)
        {
            badBuff = simToPresentTo.BuffManager.GetElement(LoadThis.buffNamePetstilence);
            if (badBuff == null)
            {
                return(false);
            }
            EWMedicineCatSkill skill = Actor.SkillManager.GetSkill <EWMedicineCatSkill>(EWMedicineCatSkill.SkillNameID);

            if (skill == null)
            {
                return(false);
            }
            return(skill.TreatSim(simToPresentTo, badBuff, Target.GetLocalizedName()));
        }
        public override bool isSuccessfulTreatment(Sim simToPresentTo)
        {
            badBuff = simToPresentTo.BuffManager.GetElement(LoadThis.buffNameGraveWound);
            if (badBuff == null)
            {
                badBuff = simToPresentTo.BuffManager.GetElement(LoadThis.buffNameSeriousWound);
            }
            else
            {
                // Add a wound a level lower. The original will be removed with treat.
                simToPresentTo.BuffManager.AddElement(LoadThis.buffNameSeriousWound, badBuff.TimeoutCount / 2,
                                                      badBuff.BuffOrigin);
            }
            if (badBuff == null)
            {
                badBuff = simToPresentTo.BuffManager.GetElement(LoadThis.buffNameMinorWound);
            }
            else
            {
                // Add wound a level lower
                simToPresentTo.BuffManager.AddElement(LoadThis.buffNameMinorWound, badBuff.TimeoutCount / 2,
                                                      badBuff.BuffOrigin);
            }

            if (badBuff == null)
            {
                return(false);
            }
            EWMedicineCatSkill skill = Actor.SkillManager.GetSkill <EWMedicineCatSkill>(EWMedicineCatSkill.SkillNameID);

            if (skill == null)
            {
                return(false);
            }
            return(skill.TreatSim(simToPresentTo, badBuff, Target.GetLocalizedName()));
        }