reverting 3 files, unintended commit

This commit is contained in:
xavier 2013-02-13 23:38:20 +00:00
parent 6ab3977c08
commit c869a14abb
3 changed files with 227 additions and 515 deletions

View file

@ -9,42 +9,38 @@ namespace Server.Engines.CannedEvil
{
private ChampionSpawn m_Spawn;
public ChampionPlatform( ChampionSpawn spawn ) : this ( spawn, false )
{
}
public ChampionPlatform( ChampionSpawn spawn, bool rebuild )
public ChampionPlatform( ChampionSpawn spawn )
{
m_Spawn = spawn;
for ( int x = -2; x <= 2; ++x )
for ( int y = -2; y <= 2; ++y )
AddComponent( m_Spawn.PlatformData.ItemIDPlaformBlocks, x, y, -5 );
AddComponent( 0x750, x, y, -5 );
for ( int x = -1; x <= 1; ++x )
for ( int y = -1; y <= 1; ++y )
AddComponent( m_Spawn.PlatformData.ItemIDPlaformBlocks, x, y, 0 );
AddComponent( 0x750, x, y, 0 );
for ( int i = -1; i <= 1; ++i )
{
AddComponent( m_Spawn.PlatformData.ItemIDStepsS, i, 2, 0 );
AddComponent( m_Spawn.PlatformData.ItemIDStepsE, 2, i, 0 );
AddComponent( 0x751, i, 2, 0 );
AddComponent( 0x752, 2, i, 0 );
AddComponent( m_Spawn.PlatformData.ItemIDStepsN, i, -2, 0 );
AddComponent( m_Spawn.PlatformData.ItemIDStepsW, -2, i, 0 );
AddComponent( 0x753, i, -2, 0 );
AddComponent( 0x754, -2, i, 0 );
}
AddComponent( m_Spawn.PlatformData.ItemIDCornerNW, -2, -2, 0 );
AddComponent( m_Spawn.PlatformData.ItemIDCornerSE, 2, 2, 0 );
AddComponent( m_Spawn.PlatformData.ItemIDCornerSW, -2, 2, 0 );
AddComponent( m_Spawn.PlatformData.ItemIDCornerNE, 2, -2, 0 );
AddComponent( 0x759, -2, -2, 0 );
AddComponent( 0x75A, 2, 2, 0 );
AddComponent( 0x75B, -2, 2, 0 );
AddComponent( 0x75C, 2, -2, 0 );
}
public void AddComponent( int id, int x, int y, int z )
{
AddonComponent ac = new AddonComponent( id );
ac.Hue = m_Spawn.PlatformData.AddonHueInactive;
ac.Hue = 0x497;
AddComponent( ac, x, y, z );
}
@ -53,7 +49,7 @@ namespace Server.Engines.CannedEvil
{
base.OnAfterDelete();
if( m_Spawn != null )
if ( m_Spawn != null )
m_Spawn.Delete();
}