Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,53 +1,53 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class PyramidAddon : BaseAddon
|
||||
{
|
||||
public override bool ShareHue => false;
|
||||
public class PyramidAddon : BaseAddon
|
||||
{
|
||||
[Constructible]
|
||||
public PyramidAddon()
|
||||
{
|
||||
AddComponent(new AddonComponent(1006), 0, 0, 5);
|
||||
|
||||
[Constructible]
|
||||
public PyramidAddon()
|
||||
{
|
||||
AddComponent( new AddonComponent( 1006 ), 0, 0, 5 );
|
||||
for (int o = 1; o <= 2; ++o)
|
||||
{
|
||||
AddComponent(new AddonComponent(1011), -o, -o, (2 - o) * 5);
|
||||
AddComponent(new AddonComponent(1012), +o, +o, (2 - o) * 5);
|
||||
AddComponent(new AddonComponent(1013), +o, -o, (2 - o) * 5);
|
||||
AddComponent(new AddonComponent(1014), -o, +o, (2 - o) * 5);
|
||||
}
|
||||
|
||||
for ( int o = 1; o <= 2; ++o )
|
||||
{
|
||||
AddComponent( new AddonComponent( 1011 ), -o, -o, ( 2 - o ) * 5 );
|
||||
AddComponent( new AddonComponent( 1012 ), +o, +o, ( 2 - o ) * 5 );
|
||||
AddComponent( new AddonComponent( 1013 ), +o, -o, ( 2 - o ) * 5 );
|
||||
AddComponent( new AddonComponent( 1014 ), -o, +o, ( 2 - o ) * 5 );
|
||||
}
|
||||
for (int o = -1; o <= 1; ++o)
|
||||
{
|
||||
AddComponent(new AddonComponent(1007), o, 2, 0);
|
||||
AddComponent(new AddonComponent(1008), 2, o, 0);
|
||||
AddComponent(new AddonComponent(1009), o, -2, 0);
|
||||
AddComponent(new AddonComponent(1010), -2, o, 0);
|
||||
}
|
||||
|
||||
for ( int o = -1; o <= 1; ++o )
|
||||
{
|
||||
AddComponent( new AddonComponent( 1007 ), o, 2, 0 );
|
||||
AddComponent( new AddonComponent( 1008 ), 2, o, 0 );
|
||||
AddComponent( new AddonComponent( 1009 ), o, -2, 0 );
|
||||
AddComponent( new AddonComponent( 1010 ), -2, o, 0 );
|
||||
}
|
||||
AddComponent(new AddonComponent(1007), 0, 1, 5);
|
||||
AddComponent(new AddonComponent(1008), 1, 0, 5);
|
||||
AddComponent(new AddonComponent(1009), 0, -1, 5);
|
||||
AddComponent(new AddonComponent(1010), -1, 0, 5);
|
||||
}
|
||||
|
||||
AddComponent( new AddonComponent( 1007 ), 0, 1, 5 );
|
||||
AddComponent( new AddonComponent( 1008 ), 1, 0, 5 );
|
||||
AddComponent( new AddonComponent( 1009 ), 0, -1, 5 );
|
||||
AddComponent( new AddonComponent( 1010 ), -1, 0, 5 );
|
||||
}
|
||||
public PyramidAddon(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public PyramidAddon( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public override bool ShareHue => false;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (byte) 0 ); // version
|
||||
}
|
||||
writer.Write((byte)0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadByte();
|
||||
}
|
||||
}
|
||||
int version = reader.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue