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

@ -139,16 +139,14 @@ namespace Server.Engines.Quests.Doom
foundLoc = true;
break;
}
else
{
int z = map.GetAverageZ( x, y );
if ( map.CanSpawnMobile( x, y, z ) )
{
dragon.MoveToWorld( new Point3D( x, y, z ), map );
foundLoc = true;
break;
}
int z = map.GetAverageZ( x, y );
if ( map.CanSpawnMobile( x, y, z ) )
{
dragon.MoveToWorld( new Point3D( x, y, z ), map );
foundLoc = true;
break;
}
}

View file

@ -65,10 +65,9 @@ namespace Server.Engines.Quests.Doom
if ( fame < 1500 )
return Utility.Dice( 2, 5, -1 );
else if ( fame < 20000 )
if ( fame < 20000 )
return Utility.Dice( 2, 4, 8 );
else
return 50;
return 50;
}
public TheSummoningQuest( Victoria victoria, PlayerMobile from ) : base( from )