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
|
|
@ -2,58 +2,58 @@ using System;
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class HeatingStand : BaseLight
|
||||
{
|
||||
public override int LitItemID => 0x184A;
|
||||
public override int UnlitItemID => 0x1849;
|
||||
public class HeatingStand : BaseLight
|
||||
{
|
||||
[Constructible]
|
||||
public HeatingStand() : base(0x1849)
|
||||
{
|
||||
if (Burnout)
|
||||
Duration = TimeSpan.FromMinutes(25);
|
||||
else
|
||||
Duration = TimeSpan.Zero;
|
||||
|
||||
[Constructible]
|
||||
public HeatingStand() : base( 0x1849 )
|
||||
{
|
||||
if ( Burnout )
|
||||
Duration = TimeSpan.FromMinutes( 25 );
|
||||
else
|
||||
Duration = TimeSpan.Zero;
|
||||
Burning = false;
|
||||
Light = LightType.Empty;
|
||||
Weight = 1.0;
|
||||
}
|
||||
|
||||
Burning = false;
|
||||
Light = LightType.Empty;
|
||||
Weight = 1.0;
|
||||
}
|
||||
public HeatingStand(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Ignite()
|
||||
{
|
||||
base.Ignite();
|
||||
public override int LitItemID => 0x184A;
|
||||
public override int UnlitItemID => 0x1849;
|
||||
|
||||
if ( ItemID == LitItemID )
|
||||
Light = LightType.Circle150;
|
||||
else if ( ItemID == UnlitItemID )
|
||||
Light = LightType.Empty;
|
||||
}
|
||||
public override void Ignite()
|
||||
{
|
||||
base.Ignite();
|
||||
|
||||
public override void Douse()
|
||||
{
|
||||
base.Douse();
|
||||
if (ItemID == LitItemID)
|
||||
Light = LightType.Circle150;
|
||||
else if (ItemID == UnlitItemID)
|
||||
Light = LightType.Empty;
|
||||
}
|
||||
|
||||
if ( ItemID == LitItemID )
|
||||
Light = LightType.Circle150;
|
||||
else if ( ItemID == UnlitItemID )
|
||||
Light = LightType.Empty;
|
||||
}
|
||||
public override void Douse()
|
||||
{
|
||||
base.Douse();
|
||||
|
||||
public HeatingStand( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
if (ItemID == LitItemID)
|
||||
Light = LightType.Circle150;
|
||||
else if (ItemID == UnlitItemID)
|
||||
Light = LightType.Empty;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue