示例#1
0
 public InternalTimer(CorgulTheSoulBinder mob, int range)
     : base(TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), range)
 {
     m_Tick   = 1;
     m_Mobile = mob;
     Priority = TimerPriority.FiftyMS;
     Start();
 }
示例#2
0
        public override bool OnBeforeDeath()
        {
            if (Region.IsPartOf <Regions.CorgulRegion>())
            {
                CorgulTheSoulBinder.CheckDropSOT(this);
            }

            return(base.OnBeforeDeath());
        }
示例#3
0
 public InternalTimer(CorgulTheSoulBinder mob, int range)
     : base(TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), range)
 {
     m_Tick = 1;
     m_Mobile = mob;
     Priority = TimerPriority.FiftyMS;
     Start();
 }
示例#4
0
        public void SpawnBoss(Mobile from)
        {
            //Spawn boss
            CorgulTheSoulBinder boss = new CorgulTheSoulBinder(this);
            boss.MoveToWorld(m_SpawnLoc, this.Map);
            boss.SpawnHelpers();
            m_Boss = boss;

            //create dummy spawn point and bounds for warp region
            m_WarpPoint = GetRandomWarpPoint();
            Rectangle2D bounds = GetRectangle(m_WarpPoint);

            //create region based on dummy spot and bounds
            m_WarpRegion = new CorgulWarpRegion(this, bounds);
            m_WarpRegion.Register();
            m_Activated = true;
        }