예제 #1
0
        protected override bool PrivateAllow(IScoringGenerator stats, SimDescription sim, SimData settings, AllowCheck check)
        {
            if (!base.PrivateAllow(stats, sim, settings, check))
            {
                return(false);
            }

            if (sim.IsEP11Bot)
            {
                if (!sim.HasTrait(TraitNames.AbilityToLearnChip))
                {
                    stats.IncStat("Chip Denied");
                    return(false);
                }
            }

            IHasSkill option = stats as IHasSkill;

            if (option != null)
            {
                foreach (SkillNames skill in option.CheckSkills)
                {
                    if (!AllowSkill(stats, sim, settings, skill))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
예제 #2
0
 public bool Allow(IHasSkill stats, SimDescription sim)
 {
     return(PrivateAllow(stats, sim));
 }
예제 #3
0
 public bool Allow(IHasSkill stats, SimDescription sim, AllowCheck check)
 {
     return(PrivateAllow(stats, sim, check));
 }
예제 #4
0
 public bool Allow(IHasSkill stats, Sim sim)
 {
     return(PrivateAllow(stats, sim));
 }