private static void FinishLaunch(object state) { object[] states = (object[])state; Mobile from = (Mobile)states[0]; Point3D endHeadLoc = (Point3D)states[1]; Map map = (Map)states[2]; if (map == null || map == Map.Internal) { return; } ExplosionPotion Epot = new ExplosionPotion(); Epot.Movable = true; Epot.Name = "Fragmentation Potion"; Epot.Hue = 1167; Epot.MoveToWorld(endHeadLoc, map); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); }
private void FinishLaunch(object state) { object[] states = (object[])state; Mobile from = (Mobile)states[0]; Point3D endHeadLoc = (Point3D)states[1]; Map map = (Map)states[2]; if (map == null || map == Map.Internal) { return; } if (m_Type != AmbushTrapType.Cage) { if (m_Type == AmbushTrapType.Poison) { PoisonExplosionPotion Epot = new PoisonExplosionPotion(); Epot.Movable = true; Epot.MoveToWorld(endHeadLoc, map); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); } else if (m_Type == AmbushTrapType.Explosion) { ExplosionPotion Epot = new ExplosionPotion(); Epot.Movable = true; Epot.MoveToWorld(endHeadLoc, map); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); } else { LesserExplosionPotion Epot = new LesserExplosionPotion(); Epot.Movable = true; Epot.MoveToWorld(endHeadLoc, map); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); } } }
private static void FinishLaunch( object state ) { object[] states = (object[])state; Mobile from = (Mobile)states[0]; Point3D endHeadLoc = (Point3D)states[1]; Map map = (Map)states[2]; if ( map == null || map == Map.Internal ) return; ExplosionPotion Epot = new ExplosionPotion(); Epot.Movable = true; Epot.Name = "Fragmentation Potion"; Epot.Hue = 1167; Epot.MoveToWorld( endHeadLoc, map ); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); }
private void FinishLaunch( object state ) { object[] states = (object[])state; Mobile from = (Mobile)states[0]; Point3D endHeadLoc = (Point3D)states[1]; Map map = (Map)states[2]; if ( map == null || map == Map.Internal ) return; if ( m_Type != AmbushTrapType.Cage ) { if ( m_Type == AmbushTrapType.Poison ) { PoisonExplosionPotion Epot = new PoisonExplosionPotion(); Epot.Movable = true; Epot.MoveToWorld( endHeadLoc, map ); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); } else if ( m_Type == AmbushTrapType.Explosion ) { ExplosionPotion Epot = new ExplosionPotion(); Epot.Movable = true; Epot.MoveToWorld( endHeadLoc, map ); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); } else { LesserExplosionPotion Epot = new LesserExplosionPotion(); Epot.Movable = true; Epot.MoveToWorld( endHeadLoc, map ); Epot.Explode(from, false, Epot.GetWorldLocation(), Epot.Map); } } }