Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -18,7 +18,9 @@ namespace Server.Gumps
protected override void OnTarget(Mobile from, object targeted)
{
if (GuildGump.BadMember(m_Mobile, m_Guild))
{
return;
}
if (targeted is Mobile m)
{
@ -57,13 +59,19 @@ namespace Server.Gumps
else if (guildFaction != targetFaction)
{
if (guildFaction == null)
{
m_Mobile.SendLocalizedMessage(1013027); // That player cannot join a non-faction guild.
}
else if (targetFaction == null)
{
m_Mobile.SendLocalizedMessage(
1013026
); // That player must be in a faction before joining this guild.
}
else
{
m_Mobile.SendLocalizedMessage(1013028); // That person has a different faction affiliation.
}
}
else if (targetState?.IsLeaving == true)
{
@ -84,7 +92,9 @@ namespace Server.Gumps
protected override void OnTargetFinish(Mobile from)
{
if (GuildGump.BadMember(m_Mobile, m_Guild))
{
return;
}
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildGump(m_Mobile, m_Guild));