protected BlurEffect(EnumBlurType blurType, int blurCode, EnumBuffExec execType, bool mainFlag, bool pureFlag) : base(EnumBuffType.BlurState, new int[] { (int)blurType }, mainFlag, pureFlag, true) { this.BlurCode = blurCode; this.ExecType = execType; }
public static bool ExecRate(out int hitRate, int rate, ISkillContext context, EnumBuffExec execType) { hitRate = rate; int maxRate = SkillDefines.MAXStorePercent; switch (execType) { case EnumBuffExec.None: return(true); case EnumBuffExec.IgnoreHit: if (context.RandomPercent(maxRate) <= rate) { hitRate = maxRate; } else { hitRate = 0; } return(true); case EnumBuffExec.MustHit: if (context.RandomPercent(maxRate) <= rate) { hitRate = maxRate; } else { hitRate = 0; } return(hitRate > 0); } return(true); }
public FootballBlurEffect(EnumBlurType blurType, EnumBlurBuffCode blurCode, EnumBuffExec execType, bool mainFlag, bool pureFlag) : base(blurType, (int)blurCode, execType, mainFlag, pureFlag) { }