コード例 #1
0
ファイル: Krysan.cs プロジェクト: zerodowned/cov-shard-svn-1
        public override bool OnBeforeDeath()
        {
            MysteriousImage rm = new MysteriousImage();

            rm.Team     = this.Team;
            rm.CantWalk = true;
            Effects.PlaySound(this, Map, GetDeathSound());
            Effects.SendLocationEffect(Location, Map, 0x3709, 30, 10, 0, 0);
            rm.MoveToWorld(Location, Map);

            if (!base.OnBeforeDeath())
            {
                return(false);
            }

            MagicalLockbox magicallockbox = new MagicalLockbox();

            magicallockbox.DropItem(new KrysanGlobe());
            magicallockbox.MoveToWorld(Location, Map);

            Effects.SendLocationEffect(Location, Map, 0x376A, 10, 1);
            return(true);
        }
コード例 #2
0
		public override bool OnBeforeDeath()
		{
			MysteriousImage rm = new MysteriousImage();
			rm.Team = this.Team;
			rm.CantWalk = true;
			Effects.PlaySound(this, Map, GetDeathSound());
			Effects.SendLocationEffect( Location, Map, 0x3709, 30, 10, 0, 0 );
			rm.MoveToWorld( Location, Map );

			if ( !base.OnBeforeDeath() )
				return false;

			MagicalLockbox magicallockbox = new MagicalLockbox();
            magicallockbox.DropItem(new RivatachGlobe());

			magicallockbox.MoveToWorld( Location, Map );

			Effects.SendLocationEffect( Location, Map, 0x376A, 10, 1 );
			return true;
		}
コード例 #3
0
 public InternalTimer(MysteriousImage owner) : base(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(5))
 {
     m_Owner = owner;
 }
コード例 #4
0
			public InternalTimer (MysteriousImage owner):base (TimeSpan.FromSeconds (5), TimeSpan.FromSeconds (5))
			{
				m_Owner = owner;
			}