Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -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