Exemple #1
0
        public static bool InitParams(EffectID effectID, LocatedEntity creature, object source, InvokeMode invokeMode, ref EffectExt refExt)
        {
            if (refExt == null)
            {
                refExt = new EffectExt();
            }

            refExt.ReqParams = EffectsData.dbEffects[(int)effectID].ReqParams;
            ICheckProc proc = EffectsData.dbEffectProcs[(int)effectID].Check;

            if (proc != null)
            {
                proc.Invoke(effectID, (NWCreature)creature, source, invokeMode, refExt);
            }

            return(refExt.Valid);
        }
 public EffectProcRec(ICheckProc Check, IEffectProc Proc)
 {
     this.Check = Check;
     this.Proc  = Proc;
 }