Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -35,7 +35,7 @@ namespace Server.Engines.Craft
|
|||
{
|
||||
if ( tool == null || tool.Deleted || tool.UsesRemaining < 0 )
|
||||
return 1044038; // You have worn out your tool!
|
||||
else if ( !BaseTool.CheckAccessible( tool, from ) )
|
||||
if ( !BaseTool.CheckAccessible( tool, from ) )
|
||||
return 1044263; // The tool must be on your person to use.
|
||||
|
||||
return 0;
|
||||
|
|
@ -65,27 +65,20 @@ namespace Server.Engines.Craft
|
|||
from.AddToBackpack( new Bottle() );
|
||||
return 500287; // You fail to create a useful potion.
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1044043; // You failed to create the item, and some of your materials are lost.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
from.PlaySound( 0x240 ); // Sound of a filling bottle
|
||||
|
||||
if ( IsPotion( item.ItemType ) )
|
||||
{
|
||||
if ( quality == -1 )
|
||||
return 1048136; // You create the potion and pour it into a keg.
|
||||
else
|
||||
return 500279; // You pour the potion into a bottle...
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1044154; // You create the item.
|
||||
}
|
||||
return 1044043; // You failed to create the item, and some of your materials are lost.
|
||||
}
|
||||
|
||||
from.PlaySound( 0x240 ); // Sound of a filling bottle
|
||||
|
||||
if ( IsPotion( item.ItemType ) )
|
||||
{
|
||||
if ( quality == -1 )
|
||||
return 1048136; // You create the potion and pour it into a keg.
|
||||
return 500279; // You pour the potion into a bottle...
|
||||
}
|
||||
|
||||
return 1044154; // You create the item.
|
||||
}
|
||||
|
||||
public override void InitCraftList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue