Fixes brace style (#248)
This commit is contained in:
parent
a236617ad9
commit
8149620b0c
1503 changed files with 28575 additions and 1717 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -42,21 +46,35 @@ 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)
|
||||
{
|
||||
if (lostMaterial)
|
||||
{
|
||||
return 1044043; // You failed to create the item, and some of your materials are lost.
|
||||
}
|
||||
|
||||
return 1044157; // You failed to create the item, but no materials were lost.
|
||||
}
|
||||
|
||||
if (quality == 0)
|
||||
{
|
||||
return 502785; // You were barely able to make this item. It's quality is below average.
|
||||
}
|
||||
|
||||
if (makersMark && quality == 2)
|
||||
{
|
||||
return 1044156; // You create an exceptional quality item and affix your maker's mark.
|
||||
}
|
||||
|
||||
if (quality == 2)
|
||||
{
|
||||
return 1044155; // You create an exceptional quality item.
|
||||
}
|
||||
|
||||
return 1044154; // You create the item.
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue