Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -6,12 +6,12 @@ namespace Server.Gumps
{
public interface ISecurable
{
SecureLevel Level{ get; set; }
SecureLevel Level { get; set; }
}
public class SetSecureLevelGump : Gump
{
private ISecurable m_Info;
private readonly ISecurable m_Info;
public SetSecureLevelGump(Mobile owner, ISecurable info, BaseHouse house) : base(50, 50)
{
@ -45,8 +45,7 @@ namespace Server.Gumps
Mobile houseOwner = house.Owner;
if (Guild.NewGuildSystem && houseOwner?.Guild != null &&
((Guild)houseOwner.Guild).Leader == houseOwner
) //Only the actual House owner AND guild master can set guild secures
((Guild)houseOwner.Guild).Leader == houseOwner) // Only the actual House owner AND guild master can set guild secures
{
AddButton(10, 130, GetFirstID(SecureLevel.Guild), 4007, 5);
AddHtmlLocalized(45, 130, 150, 20, 1063455, GetColor(SecureLevel.Guild)); // Guild Members