Пример #1
0
        public override bool AddToWorld()
        {
            if (!base.AddToWorld())
            {
                return(false);
            }
            TeleporterEffect mob = new TeleporterEffect();

            mob.CurrentRegion = this.CurrentRegion;
            mob.Position      = this.Position;
            mob.Heading       = this.Heading;
            mob.Health        = mob.MaxHealth;
            mob.MaxSpeedBase  = 0;
            if (mob.AddToWorld())
            {
                sfx = mob;
            }
            return(true);
        }
Пример #2
0
		public override bool AddToWorld()
		{
			if (!base.AddToWorld()) return false;
			TeleporterEffect mob = new TeleporterEffect();
			mob.CurrentRegion = this.CurrentRegion;
			mob.X = this.X;
			mob.Y = this.Y;
			mob.Z = this.Z;
			mob.Heading = this.Heading;
			mob.Health = mob.MaxHealth;
			mob.MaxSpeedBase = 0;
			if (mob.AddToWorld())
				sfx = mob;
			return true;
		}