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

@ -4,7 +4,6 @@ namespace Server.Engines.MLQuests
{
public class QuestArea
{
public QuestArea(TextDefinition name, string region, Map forceMap = null)
{
Name = name;
@ -15,17 +14,17 @@ namespace Server.Engines.MLQuests
ValidationQueue<QuestArea>.Add(this);
}
public TextDefinition Name{ get; set; }
public TextDefinition Name { get; set; }
public string RegionName{ get; set; }
public string RegionName { get; set; }
public Map ForceMap{ get; set; }
public Map ForceMap { get; set; }
public bool Contains(Mobile mob) => Contains(mob.Region);
public bool Contains(Region reg)
{
if (reg == null || ForceMap != null && reg.Map != ForceMap)
if (reg == null || (ForceMap != null && reg.Map != ForceMap))
return false;
return reg.IsPartOf(RegionName);