Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -65,17 +65,13 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public static bool IsLeader(Mobile m, Guild g)
|
||||
{
|
||||
return !(m.Deleted || g.Disbanded || !(m is PlayerMobile) ||
|
||||
m.AccessLevel < AccessLevel.GameMaster && g.Leader != m);
|
||||
}
|
||||
public static bool IsLeader(Mobile m, Guild g) =>
|
||||
!(m.Deleted || g.Disbanded || !(m is PlayerMobile) ||
|
||||
m.AccessLevel < AccessLevel.GameMaster && g.Leader != m);
|
||||
|
||||
public static bool IsMember(Mobile m, Guild g)
|
||||
{
|
||||
return !(m.Deleted || g.Disbanded || !(m is PlayerMobile) ||
|
||||
m.AccessLevel < AccessLevel.GameMaster && !g.IsMember(m));
|
||||
}
|
||||
public static bool IsMember(Mobile m, Guild g) =>
|
||||
!(m.Deleted || g.Disbanded || !(m is PlayerMobile) ||
|
||||
m.AccessLevel < AccessLevel.GameMaster && !g.IsMember(m));
|
||||
|
||||
public static bool CheckProfanity(string s, int maxLength = 50)
|
||||
{
|
||||
|
|
@ -123,9 +119,6 @@ namespace Server.Guilds
|
|||
AddHtml(x, y, width, height, text.String, back, scroll);
|
||||
}
|
||||
|
||||
public static string Color(string text, int color)
|
||||
{
|
||||
return $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
|
||||
}
|
||||
public static string Color(string text, int color) => $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,10 +103,7 @@ namespace Server.Guilds
|
|||
{
|
||||
}
|
||||
|
||||
public virtual bool HasRelationship(T o)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public virtual bool HasRelationship(T o) => false;
|
||||
|
||||
public virtual void DrawEntry(T o, int index, int itemNumber)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -179,10 +179,8 @@ namespace Server.Guilds
|
|||
|
||||
|
||||
public override Gump GetResentGump(PlayerMobile pm, Guild g, IComparer<Guild> comparer, bool ascending,
|
||||
string filter, int startNumber)
|
||||
{
|
||||
return new GuildDiplomacyGump(pm, g, comparer, ascending, filter, startNumber, m_Display);
|
||||
}
|
||||
string filter, int startNumber) =>
|
||||
new GuildDiplomacyGump(pm, g, comparer, ascending, filter, startNumber, m_Display);
|
||||
|
||||
public override Gump GetObjectInfoGump(PlayerMobile pm, Guild g, Guild o)
|
||||
{
|
||||
|
|
@ -232,10 +230,7 @@ namespace Server.Guilds
|
|||
{
|
||||
private Guild m_Guild;
|
||||
|
||||
public StatusComparer(Guild g)
|
||||
{
|
||||
m_Guild = g;
|
||||
}
|
||||
public StatusComparer(Guild g) => m_Guild = g;
|
||||
|
||||
public int Compare(Guild x, Guild y)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -73,15 +73,10 @@ namespace Server.Guilds
|
|||
}
|
||||
|
||||
public override Gump GetResentGump(PlayerMobile pm, Guild g, IComparer<PlayerMobile> comparer, bool ascending,
|
||||
string filter, int startNumber)
|
||||
{
|
||||
return new GuildRosterGump(pm, g, comparer, ascending, filter, startNumber);
|
||||
}
|
||||
string filter, int startNumber) =>
|
||||
new GuildRosterGump(pm, g, comparer, ascending, filter, startNumber);
|
||||
|
||||
public override Gump GetObjectInfoGump(PlayerMobile pm, Guild g, PlayerMobile o)
|
||||
{
|
||||
return new GuildMemberInfoGump(pm, g, o, false, false);
|
||||
}
|
||||
public override Gump GetObjectInfoGump(PlayerMobile pm, Guild g, PlayerMobile o) => new GuildMemberInfoGump(pm, g, o, false, false);
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue