Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -24,10 +24,14 @@ namespace Server.Engines.Craft
public override int CanCraft(Mobile from, BaseTool tool, Type itemType)
{
if (tool?.Deleted != false || tool.UsesRemaining < 0)
{
return 1044038; // You have worn out your tool!
}
if (!BaseTool.CheckAccessible(tool, from))
{
return 1044263; // The tool must be on your person to use.
}
return 0;
}
@ -45,7 +49,9 @@ namespace Server.Engines.Craft
)
{
if (toolBroken)
from.SendLocalizedMessage(1044038); // You have worn out your tool
{
@from.SendLocalizedMessage(1044038); // You have worn out your tool
}
if (failed)
{
@ -63,7 +69,10 @@ namespace Server.Engines.Craft
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...
}