Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -118,37 +118,38 @@ namespace Server.Mobiles
|
|||
from.SayTo( from, 1010095 ); // This must be on your person to use.
|
||||
return false;
|
||||
}
|
||||
else if ( m_IsRewardItem && !RewardSystem.CheckIsUsableBy( from, this, null ) )
|
||||
|
||||
if ( m_IsRewardItem && !RewardSystem.CheckIsUsableBy( from, this, null ) )
|
||||
{
|
||||
// CheckIsUsableBy sends the message
|
||||
return false;
|
||||
}
|
||||
else if ( !BaseMount.CheckMountAllowed( from ) )
|
||||
if ( !BaseMount.CheckMountAllowed( from ) )
|
||||
{
|
||||
// CheckMountAllowed sends the message
|
||||
return false;
|
||||
}
|
||||
else if ( from.Mounted )
|
||||
if ( from.Mounted )
|
||||
{
|
||||
from.SendLocalizedMessage( 1005583 ); // Please dismount first.
|
||||
return false;
|
||||
}
|
||||
else if ( from.IsBodyMod && !from.Body.IsHuman )
|
||||
if ( from.IsBodyMod && !from.Body.IsHuman )
|
||||
{
|
||||
from.SendLocalizedMessage( 1061628 ); // You can't do that while polymorphed.
|
||||
return false;
|
||||
}
|
||||
else if ( from.HasTrade )
|
||||
if ( from.HasTrade )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042317, "", 0x41 ); // You may not ride at this time
|
||||
return false;
|
||||
}
|
||||
else if ( ( from.Followers + FollowerSlots ) > from.FollowersMax )
|
||||
if ( ( from.Followers + FollowerSlots ) > from.FollowersMax )
|
||||
{
|
||||
from.SendLocalizedMessage( 1049679 ); // You have too many followers to summon your mount.
|
||||
return false;
|
||||
}
|
||||
else if ( !Multis.DesignContext.Check( from ) )
|
||||
if ( !Multis.DesignContext.Check( from ) )
|
||||
{
|
||||
// Check sends the message
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -42,29 +42,29 @@ namespace Server.Mobiles
|
|||
|
||||
if ( rand <= 0 )
|
||||
return 0x855C;
|
||||
else if ( rand <= 1 )
|
||||
if ( rand <= 1 )
|
||||
return 0x8490;
|
||||
else if ( rand <= 3 )
|
||||
if ( rand <= 3 )
|
||||
return 0x8030;
|
||||
else if ( rand <= 5 )
|
||||
if ( rand <= 5 )
|
||||
return 0x8037;
|
||||
else if ( rand <= 8 )
|
||||
if ( rand <= 8 )
|
||||
return 0x8295;
|
||||
else if ( rand <= 11 )
|
||||
if ( rand <= 11 )
|
||||
return 0x8123;
|
||||
else if ( rand <= 16 )
|
||||
if ( rand <= 16 )
|
||||
return 0x8482;
|
||||
else if ( rand <= 24 )
|
||||
if ( rand <= 24 )
|
||||
return 0x8487;
|
||||
else if ( rand <= 34 )
|
||||
if ( rand <= 34 )
|
||||
return 0x8032;
|
||||
else if ( rand <= 44 )
|
||||
if ( rand <= 44 )
|
||||
return 0x8899;
|
||||
else if ( rand <= 54 )
|
||||
if ( rand <= 54 )
|
||||
return 0x8495;
|
||||
else if ( rand <= 64 )
|
||||
if ( rand <= 64 )
|
||||
return 0x848D;
|
||||
else if ( rand <= 74 )
|
||||
if ( rand <= 74 )
|
||||
return 0x847F;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -30,13 +30,13 @@ namespace Server.Mobiles
|
|||
|
||||
if ( rand <= 0 )
|
||||
return 0x8258;
|
||||
else if ( rand <= 1 )
|
||||
if ( rand <= 1 )
|
||||
return 0x88AB;
|
||||
else if ( rand <= 6 )
|
||||
if ( rand <= 6 )
|
||||
return 0x87D4;
|
||||
else if ( rand <= 16 )
|
||||
if ( rand <= 16 )
|
||||
return 0x8163;
|
||||
else if ( rand <= 26 )
|
||||
if ( rand <= 26 )
|
||||
return 0x8295;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue