Fixes implicit ternary expressions

This commit is contained in:
Kamron Batman 2018-09-14 14:56:48 -07:00
parent c85b0a740c
commit ff26dfa375
345 changed files with 1905 additions and 2336 deletions

View file

@ -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 )

View file

@ -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;

View file

@ -143,7 +143,7 @@ namespace Server.Factions
{
Faction faction = Faction.Find( from );
faction?.BeginHonorLeadership( @from );
faction?.BeginHonorLeadership( from );
break;
}