Beispiel #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);
        }
Beispiel #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);
        }