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

@ -19,9 +19,8 @@ namespace Server.Engines.Quests.Matriarch
*/
return 1054081;
}
else
{
/* <I>The Solen Matriarch smiles as she eats the seed you offered.</I><BR><BR>
/* <I>The Solen Matriarch smiles as she eats the seed you offered.</I><BR><BR>
*
* Thank you for that seed. It was quite delicious. <BR><BR>
*
@ -29,8 +28,7 @@ namespace Server.Engines.Quests.Matriarch
* another task at the moment. Perhaps you should finish whatever is occupying
* your attention at the moment and return to me once you're done.
*/
return 1054079;
}
return 1054079;
}
}
@ -133,9 +131,8 @@ namespace Server.Engines.Quests.Matriarch
*/
return 1054097;
}
else
{
/* <I>The Solen Matriarch listens as you report the completion of your
/* <I>The Solen Matriarch listens as you report the completion of your
* tasks to her.</I><BR><BR>
*
* I give you my thanks for your help, and I will gladly make you a friend of my
@ -149,8 +146,7 @@ namespace Server.Engines.Quests.Matriarch
* I will also give you some gold for assisting me and my colony, but first let's
* take care of your zoogi fungus.
*/
return 1054096;
}
return 1054096;
}
}

View file

@ -38,8 +38,7 @@ namespace Server.Engines.Quests.Matriarch
if ( redSolen )
return from is BlackSolenInfiltratorWarrior || from is BlackSolenInfiltratorQueen;
else
return from is RedSolenInfiltratorWarrior || from is RedSolenInfiltratorQueen;
return from is RedSolenInfiltratorWarrior || from is RedSolenInfiltratorQueen;
}
public override void OnKill( BaseCreature creature, Container corpse )

View file

@ -54,9 +54,8 @@ namespace Server.Engines.Quests.Matriarch
*/
return 1054083;
}
else
{
/* <I>The Solen Matriarch smiles happily as she eats the seed you offered.</I><BR><BR>
/* <I>The Solen Matriarch smiles happily as she eats the seed you offered.</I><BR><BR>
*
* I think you for that seed. I was quite delicious. So full of flavor.<BR><BR>
*
@ -79,8 +78,7 @@ namespace Server.Engines.Quests.Matriarch
*
* Will you accept my offer?
*/
return 1054082;
}
return 1054082;
}
}
@ -128,8 +126,7 @@ namespace Server.Engines.Quests.Matriarch
{
if ( redSolen )
return player.SolenFriendship == SolenFriendship.Red;
else
return player.SolenFriendship == SolenFriendship.Black;
return player.SolenFriendship == SolenFriendship.Black;
}
public static bool GiveRewardTo( PlayerMobile player )
@ -141,11 +138,9 @@ namespace Server.Engines.Quests.Matriarch
player.SendLocalizedMessage( 1054076 ); // You have been given some gold.
return true;
}
else
{
gold.Delete();
return false;
}
gold.Delete();
return false;
}
}
}