Esempio n. 1
0
        /// <summary>
        /// Run an effect on the monster. Calls the effect's onStart and adds it to the current effects queue
        /// </summary>
        /// <param name="effect"></param>
        internal void AddEffect(ItemEffect effect)
        {
            Effects.Add(effect);

            effect.OnStart(this);
        }
Esempio n. 2
0
        /// <summary>
        /// Run an effect on the monster. Calls the effect's onStart and adds it to the current effects queue
        /// </summary>
        /// <param name="effect"></param>
        internal void AddEffect(ItemEffect effect)
        {
            Effects.Add(effect);

            effect.OnStart(this);
        }