public void ContinueMorph() { Blessed = false; ProcessDelta(); Say(1049499); // Behold my true form! Map map = Map; if (map != null) { for (int i = 0; i < m_Offsets.Length; i += 2) { double rx = m_Offsets[i]; double ry = m_Offsets[i + 1]; int dist = 0; bool ok = false; int x = 0, y = 0, z = 0; while (!ok && dist < 10) { int rdist = 10 + dist; x = X + (int)(rx * rdist); y = Y + (int)(ry * rdist); z = map.GetAverageZ(x, y); if (!(ok = map.CanFit(x, y, Z, 16, false, false))) { ok = map.CanFit(x, y, z, 16, false, false); } if (dist >= 0) { dist = -(dist + 1); } else { dist = -(dist - 1); } } if (!ok) { continue; } HarrowerTentacles spawn = new HarrowerTentacles(this); spawn.Team = Team; spawn.MoveToWorld(new Point3D(x, y, z), map); m_Tentacles.Add(spawn); } } }
public void Morph() { if (m_TrueForm) { return; } m_TrueForm = true; Name = "the true harrower"; BodyValue = 780; Hue = 0x497; Hits = HitsMax; Stam = StamMax; Mana = ManaMax; ProcessDelta(); Say(1049499); // Behold my true form! Map map = this.Map; if (map != null) { for (int i = 0; i < m_Offsets.Length; i += 2) { double rx = m_Offsets[i]; double ry = m_Offsets[i + 1]; int dist = 0; bool ok = false; int x = 0, y = 0, z = 0; while (!ok && dist < 10) { int rdist = 10 + dist; x = this.X + (int)(rx * rdist); y = this.Y + (int)(ry * rdist); z = map.GetAverageZ(x, y); if (!(ok = map.CanFit(x, y, this.Z, 16, false, false))) { ok = map.CanFit(x, y, z, 16, false, false); } if (dist >= 0) { dist = -(dist + 1); } else { dist = -(dist - 1); } } if (!ok) { continue; } HarrowerTentacles spawn = new HarrowerTentacles(this); spawn.Team = this.Team; spawn.MoveToWorld(new Point3D(x, y, z), map); m_Tentacles.Add(spawn); } } }
public DrainTimer(HarrowerTentacles owner) : base(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(5.0)) { m_Owner = owner; }
public DrainTimer(HarrowerTentacles owner) : base(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(5.0)) { m_Owner = owner; Priority = TimerPriority.TwoFiftyMS; }
public DrainTimer( HarrowerTentacles owner ) : base( TimeSpan.FromSeconds( 5.0 ), TimeSpan.FromSeconds( 5.0 ) ) { m_Owner = owner; Priority = TimerPriority.TwoFiftyMS; }
public DrainTimer( HarrowerTentacles owner ) : base(TimeSpan.FromSeconds( 5.0 ), TimeSpan.FromSeconds( 5.0 )) { m_Owner = owner; }
public void Morph() { if ( m_TrueForm ) return; m_TrueForm = true; Name = "the true harrower"; BodyValue = 780; Hue = 0x497; Hits = HitsMax; Stam = StamMax; Mana = ManaMax; ProcessDelta(); Say( 1049499 ); // Behold my true form! Map map = this.Map; if ( map != null ) { for ( int i = 0; i < m_Offsets.Length; i += 2 ) { double rx = m_Offsets[i]; double ry = m_Offsets[i + 1]; int dist = 0; bool ok = false; int x = 0, y = 0, z = 0; while ( !ok && dist < 10 ) { int rdist = 10 + dist; x = this.X + (int)(rx * rdist); y = this.Y + (int)(ry * rdist); z = map.GetAverageZ( x, y ); if ( !(ok = map.CanFit( x, y, this.Z, 16, false, false ) ) ) ok = map.CanFit( x, y, z, 16, false, false ); if ( dist >= 0 ) dist = -(dist + 1); else dist = -(dist - 1); } if ( !ok ) continue; HarrowerTentacles spawn = new HarrowerTentacles( this ); spawn.Team = this.Team; spawn.MoveToWorld( new Point3D( x, y, z ), map ); m_Tentacles.Add( spawn ); } } }
public void ContinueMorph() { Blessed = false; ProcessDelta(); Say( 1049499 ); // Behold my true form! Map map = Map; if ( map != null ) { for ( int i = 0; i < m_Offsets.Length; i += 2 ) { double rx = m_Offsets[i]; double ry = m_Offsets[i + 1]; int dist = 0; bool ok = false; int x = 0, y = 0, z = 0; while ( !ok && dist < 10 ) { int rdist = 10 + dist; x = X + (int)(rx * rdist); y = Y + (int)(ry * rdist); z = map.GetAverageZ( x, y ); if ( !(ok = map.CanFit( x, y, Z, 16, false, false ) ) ) ok = map.CanFit( x, y, z, 16, false, false ); if ( dist >= 0 ) dist = -(dist + 1); else dist = -(dist - 1); } if ( !ok ) continue; HarrowerTentacles spawn = new HarrowerTentacles( this ); spawn.Team = Team; spawn.MoveToWorld( new Point3D( x, y, z ), map ); m_Tentacles.Add( spawn ); } } }