Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -90,10 +90,10 @@ namespace Server.Items
|
|||
|
||||
public virtual bool TryCreateBoards( Mobile from, double skill, Item item )
|
||||
{
|
||||
if ( Deleted || !from.CanSee( this ) )
|
||||
if ( Deleted || !from.CanSee( this ) )
|
||||
return false;
|
||||
else if ( from.Skills.Carpentry.Value < skill &&
|
||||
from.Skills.Lumberjacking.Value < skill )
|
||||
if ( from.Skills.Carpentry.Value < skill &&
|
||||
from.Skills.Lumberjacking.Value < skill )
|
||||
{
|
||||
item.Delete();
|
||||
from.SendLocalizedMessage( 1072652 ); // You cannot work this strange and unusual wood.
|
||||
|
|
@ -107,7 +107,7 @@ namespace Server.Items
|
|||
{
|
||||
if ( !TryCreateBoards( from , 0, new Board() ) )
|
||||
return false;
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -118,7 +118,7 @@ namespace Server.Items
|
|||
{
|
||||
}
|
||||
[Constructible]
|
||||
public HeartwoodLog( int amount )
|
||||
public HeartwoodLog( int amount )
|
||||
: base( CraftResource.Heartwood, amount )
|
||||
{
|
||||
}
|
||||
|
|
@ -352,4 +352,4 @@ namespace Server.Items
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue