Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -109,7 +109,7 @@ namespace Server.Items
|
|||
{
|
||||
if ( !ValidateEdit( from ) )
|
||||
return;
|
||||
else if ( m_Pins.Count >= MaxUserPins )
|
||||
if ( m_Pins.Count >= MaxUserPins )
|
||||
return;
|
||||
|
||||
Validate( ref x, ref y );
|
||||
|
|
@ -137,7 +137,7 @@ namespace Server.Items
|
|||
{
|
||||
if ( !ValidateEdit( from ) )
|
||||
return;
|
||||
else if ( m_Pins.Count >= MaxUserPins )
|
||||
if ( m_Pins.Count >= MaxUserPins )
|
||||
return;
|
||||
|
||||
Validate( ref x, ref y );
|
||||
|
|
@ -182,9 +182,9 @@ namespace Server.Items
|
|||
{
|
||||
if ( !from.CanSee( this ) || from.Map != Map || !from.Alive || InSecureTrade )
|
||||
return false;
|
||||
else if ( from.AccessLevel >= AccessLevel.GameMaster )
|
||||
if ( from.AccessLevel >= AccessLevel.GameMaster )
|
||||
return true;
|
||||
else if ( !Movable || m_Protected || !from.InRange( GetWorldLocation(), 2 ) )
|
||||
if ( !Movable || m_Protected || !from.InRange( GetWorldLocation(), 2 ) )
|
||||
return false;
|
||||
|
||||
object root = RootParent;
|
||||
|
|
|
|||
|
|
@ -802,13 +802,12 @@ namespace Server.Items
|
|||
{
|
||||
if ( m_Level == 6 )
|
||||
return 1063453;
|
||||
else
|
||||
return 1041516 + m_Level;
|
||||
return 1041516 + m_Level;
|
||||
}
|
||||
else if ( m_Level == 6 )
|
||||
|
||||
if ( m_Level == 6 )
|
||||
return 1063452;
|
||||
else
|
||||
return 1041510 + m_Level;
|
||||
return 1041510 + m_Level;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue