Esempio n. 1
0
        /// <summary>
        /// Set light level and update
        /// to creature's around this creature.
        /// </summary>
        public void AppendSpellLightLevel(byte lightLevel, int lightSeconds)
        {
            if (SpellLightLevel >= lightLevel)
            {
                return;
            }

            LightTicks      = lightSeconds / 5;
            SpellLightLevel = lightLevel;
            World.AppendUpdateLight(this);
            LightCheck = new LightCheck();
            LightCheck.CurrentCreature = this;
            LightCheck.TimeInCS        = 500;
            LightCheck.World           = World;
            World.AddEventInCS(LightCheck.TimeInCS, LightCheck.PerformCheck);
        }
Esempio n. 2
0
        /// <summary>
        /// Set light level and update
        /// to creature's around this creature.
        /// </summary>
        public void AppendSpellLightLevel(byte lightLevel, int lightSeconds)
        {
            if (SpellLightLevel >= lightLevel) {
                return;
            }

            LightTicks = lightSeconds / 5;
            SpellLightLevel = lightLevel;
            World.AppendUpdateLight(this);
            LightCheck = new LightCheck();
            LightCheck.CurrentCreature = this;
            LightCheck.TimeInCS = 500;
            LightCheck.World = World;
            World.AddEventInCS(LightCheck.TimeInCS, LightCheck.PerformCheck);
        }