Пример #1
0
 public override bool Test(Sim a, Terrain target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
 {
     if (a.IsCat && !a.IsKitten)
     {
         return(PetManager.PetSkillFatigueTest(a, ref greyedOutTooltipCallback));
     }
     return(false);
 }
Пример #2
0
            public override bool Test(Sim a, Terrain target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
            {
                if (SimTypes.IsSelectable(a))
                {
                    if (a.SkillManager.GetSkillLevel(SkillNames.CatHunting) < 1)
                    {
                        return(false);
                    }

                    CatHuntingSkill skill = a.SkillManager.GetSkill <CatHuntingSkill>(SkillNames.CatHunting);
                    if ((skill == null) || (!skill.CanCatchPreyOfType(CatHuntingSkill.PreyType.Fish)))
                    {
                        return(false);
                    }
                }

                if (!a.IsCat)
                {
                    return(false);
                }

                return(PetManager.PetSkillFatigueTest(a, ref greyedOutTooltipCallback));
            }