示例#1
0
        public void Application(Perso perso)
        {
            List <EffetAppliquer> cumul = (from effetActif in perso.ListEffets where effetActif.IdEffet == Id select effetActif).ToList();

            if (cumul.Count < CumulMax)
            {
                int valueResist = ChanceResist + perso.GetStat(StatResist);
                valueResist = Util.GetValeurOn100(valueResist);
                int     result;
                Boolean resist;
                Roll.Jet100(valueResist, out result, out resist);
                if (!resist)
                {
                    EffetAppliquer effetAppliquer = new EffetAppliquer(this);
                    if (effetAppliquer.TourRestant > 0)
                    {
                        perso.ListEffets.Add(effetAppliquer);
                    }
                }
            }
        }