Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -246,30 +246,24 @@ namespace Server.Engines.Craft
|
|||
message = "You lack the required hit points to make that.";
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
consumHits = consume;
|
||||
}
|
||||
|
||||
consumHits = consume;
|
||||
|
||||
if ( Mana > 0 && from.Mana < Mana )
|
||||
{
|
||||
message = "You lack the required mana to make that.";
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
consumMana = consume;
|
||||
}
|
||||
|
||||
consumMana = consume;
|
||||
|
||||
if ( Stam > 0 && from.Stam < Stam )
|
||||
{
|
||||
message = "You lack the required stamina to make that.";
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
consumStam = consume;
|
||||
}
|
||||
|
||||
consumStam = consume;
|
||||
|
||||
if ( consumMana )
|
||||
from.Mana -= Mana;
|
||||
|
|
@ -786,7 +780,7 @@ namespace Server.Engines.Craft
|
|||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
{
|
||||
CraftRes res = m_arCraftRes.GetAt( index );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue