quick hax to allow rational stat gains.
This commit is contained in:
parent
d718a5a28c
commit
6ab3977c08
4 changed files with 516 additions and 228 deletions
|
|
@ -9,38 +9,42 @@ namespace Server.Engines.CannedEvil
|
|||
{
|
||||
private ChampionSpawn m_Spawn;
|
||||
|
||||
public ChampionPlatform( ChampionSpawn spawn )
|
||||
public ChampionPlatform( ChampionSpawn spawn ) : this ( spawn, false )
|
||||
{
|
||||
}
|
||||
|
||||
public ChampionPlatform( ChampionSpawn spawn, bool rebuild )
|
||||
{
|
||||
m_Spawn = spawn;
|
||||
|
||||
for ( int x = -2; x <= 2; ++x )
|
||||
for ( int y = -2; y <= 2; ++y )
|
||||
AddComponent( 0x750, x, y, -5 );
|
||||
AddComponent( m_Spawn.PlatformData.ItemIDPlaformBlocks, x, y, -5 );
|
||||
|
||||
for ( int x = -1; x <= 1; ++x )
|
||||
for ( int y = -1; y <= 1; ++y )
|
||||
AddComponent( 0x750, x, y, 0 );
|
||||
AddComponent( m_Spawn.PlatformData.ItemIDPlaformBlocks, x, y, 0 );
|
||||
|
||||
for ( int i = -1; i <= 1; ++i )
|
||||
{
|
||||
AddComponent( 0x751, i, 2, 0 );
|
||||
AddComponent( 0x752, 2, i, 0 );
|
||||
AddComponent( m_Spawn.PlatformData.ItemIDStepsS, i, 2, 0 );
|
||||
AddComponent( m_Spawn.PlatformData.ItemIDStepsE, 2, i, 0 );
|
||||
|
||||
AddComponent( 0x753, i, -2, 0 );
|
||||
AddComponent( 0x754, -2, i, 0 );
|
||||
AddComponent( m_Spawn.PlatformData.ItemIDStepsN, i, -2, 0 );
|
||||
AddComponent( m_Spawn.PlatformData.ItemIDStepsW, -2, i, 0 );
|
||||
}
|
||||
|
||||
AddComponent( 0x759, -2, -2, 0 );
|
||||
AddComponent( 0x75A, 2, 2, 0 );
|
||||
AddComponent( 0x75B, -2, 2, 0 );
|
||||
AddComponent( 0x75C, 2, -2, 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 );
|
||||
}
|
||||
|
||||
public void AddComponent( int id, int x, int y, int z )
|
||||
{
|
||||
AddonComponent ac = new AddonComponent( id );
|
||||
|
||||
ac.Hue = 0x497;
|
||||
ac.Hue = m_Spawn.PlatformData.AddonHueInactive;
|
||||
|
||||
AddComponent( ac, x, y, z );
|
||||
}
|
||||
|
|
@ -49,7 +53,7 @@ namespace Server.Engines.CannedEvil
|
|||
{
|
||||
base.OnAfterDelete();
|
||||
|
||||
if ( m_Spawn != null )
|
||||
if( m_Spawn != null )
|
||||
m_Spawn.Delete();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue