Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -10,14 +10,8 @@ namespace Server.Items
|
|||
{
|
||||
public override int LabelNumber => 1041079; // a special fishing net
|
||||
|
||||
private bool m_InUse;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool InUse
|
||||
{
|
||||
get => m_InUse;
|
||||
set => m_InUse = value;
|
||||
}
|
||||
public bool InUse { get; set; }
|
||||
|
||||
[Constructible]
|
||||
public SpecialFishingNet() : base( 0x0DCA )
|
||||
|
|
@ -70,7 +64,7 @@ namespace Server.Items
|
|||
|
||||
writer.Write( (int) 1 ); // version
|
||||
|
||||
writer.Write( m_InUse );
|
||||
writer.Write( InUse );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
|
|
@ -83,9 +77,9 @@ namespace Server.Items
|
|||
{
|
||||
case 1:
|
||||
{
|
||||
m_InUse = reader.ReadBool();
|
||||
InUse = reader.ReadBool();
|
||||
|
||||
if ( m_InUse )
|
||||
if ( InUse )
|
||||
Delete();
|
||||
|
||||
break;
|
||||
|
|
@ -97,7 +91,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( m_InUse )
|
||||
if ( InUse )
|
||||
{
|
||||
from.SendLocalizedMessage( 1010483 ); // Someone is already using that net!
|
||||
}
|
||||
|
|
@ -116,7 +110,7 @@ namespace Server.Items
|
|||
|
||||
public void OnTarget( Mobile from, object obj )
|
||||
{
|
||||
if ( Deleted || m_InUse )
|
||||
if ( Deleted || InUse )
|
||||
return;
|
||||
|
||||
if ( !(obj is IPoint3D p3D) )
|
||||
|
|
@ -147,7 +141,7 @@ namespace Server.Items
|
|||
from.AddToBackpack( new SpecialFishingNet() );
|
||||
}
|
||||
|
||||
m_InUse = true;
|
||||
InUse = true;
|
||||
Movable = false;
|
||||
MoveToWorld( p, map );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue