Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -1014,7 +1014,7 @@ namespace Server.Factions
|
|||
|
||||
if ( pack != null )
|
||||
{
|
||||
Container killerPack = ( killer == null ? null : killer.Backpack );
|
||||
Container killerPack = killer?.Backpack;
|
||||
Item[] sigils = pack.FindItemsByType( typeof( Sigil ) );
|
||||
|
||||
for ( int i = 0; i < sigils.Length; ++i )
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ namespace Server.Factions
|
|||
ps.IsActive = false;
|
||||
continue;
|
||||
}
|
||||
else if ( ps.KillPoints > 0 )
|
||||
|
||||
if ( ps.KillPoints > 0 )
|
||||
{
|
||||
int atrophy = ( ps.KillPoints + 9 ) / 10;
|
||||
ps.KillPoints -= atrophy;
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ namespace Server.Factions
|
|||
{
|
||||
Faction faction = Faction.Find( from );
|
||||
|
||||
faction?.BeginHonorLeadership( @from );
|
||||
faction?.BeginHonorLeadership( from );
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue