Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -30,11 +30,11 @@ namespace Server {
|
|||
from.AddStatMod( new StatMod( StatType.All, "blood-rose", amount, TimeSpan.FromMinutes( time ) ) );
|
||||
|
||||
return true;
|
||||
} else {
|
||||
from.SendLocalizedMessage( 1062927 ); // You have eaten one of these recently and eating another would provide no benefit.
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
from.SendLocalizedMessage( 1062927 ); // You have eaten one of these recently and eating another would provide no benefit.
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer ) {
|
||||
|
|
@ -49,4 +49,4 @@ namespace Server {
|
|||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ namespace Server {
|
|||
|
||||
weight = Utility.Random( weight );
|
||||
|
||||
foreach ( WeightedItem item in _items ) {
|
||||
foreach ( WeightedItem item in _items )
|
||||
{
|
||||
if ( weight < item.Weight ) {
|
||||
Item obj = item.Construct();
|
||||
|
||||
|
|
@ -95,9 +96,9 @@ namespace Server {
|
|||
}
|
||||
|
||||
break;
|
||||
} else {
|
||||
weight -= item.Weight;
|
||||
}
|
||||
|
||||
weight -= item.Weight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue