Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -293,10 +293,7 @@ namespace Server.Mobiles
|
|||
return false;
|
||||
}
|
||||
|
||||
public override bool HandlesOnSpeech(Mobile from)
|
||||
{
|
||||
return !MLQuestSystem.Enabled && (from.InRange(Location, 3) || base.HandlesOnSpeech(from));
|
||||
}
|
||||
public override bool HandlesOnSpeech(Mobile from) => !MLQuestSystem.Enabled && (from.InRange(Location, 3) || base.HandlesOnSpeech(from));
|
||||
|
||||
public override void OnSpeech(SpeechEventArgs e)
|
||||
{
|
||||
|
|
@ -553,10 +550,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
public override bool CanBeRenamedBy(Mobile from)
|
||||
{
|
||||
return from.AccessLevel >= AccessLevel.GameMaster;
|
||||
}
|
||||
public override bool CanBeRenamedBy(Mobile from) => from.AccessLevel >= AccessLevel.GameMaster;
|
||||
|
||||
public override void AddCustomContextEntries(Mobile from, List<ContextMenuEntry> list)
|
||||
{
|
||||
|
|
@ -580,10 +574,7 @@ namespace Server.Mobiles
|
|||
base.AddCustomContextEntries(from, list);
|
||||
}
|
||||
|
||||
public virtual string[] GetPossibleDestinations()
|
||||
{
|
||||
return Core.ML ? m_MLTownNames : m_TownNames;
|
||||
}
|
||||
public virtual string[] GetPossibleDestinations() => Core.ML ? m_MLTownNames : m_TownNames;
|
||||
|
||||
public virtual string PickRandomDestination()
|
||||
{
|
||||
|
|
@ -655,10 +646,7 @@ namespace Server.Mobiles
|
|||
|
||||
public Region Region{ get; }
|
||||
|
||||
public bool Contains(Point3D p)
|
||||
{
|
||||
return Region.Contains(p);
|
||||
}
|
||||
public bool Contains(Point3D p) => Region.Contains(p);
|
||||
|
||||
public static void LoadTable()
|
||||
{
|
||||
|
|
@ -730,10 +718,8 @@ namespace Server.Mobiles
|
|||
private BaseEscortable m_Mobile;
|
||||
|
||||
public AbandonEscortEntry(BaseEscortable m)
|
||||
: base(6102, 3)
|
||||
{
|
||||
: base(6102, 3) =>
|
||||
m_Mobile = m;
|
||||
}
|
||||
|
||||
public override void OnClick()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,10 +5,7 @@ namespace Server.Mobiles
|
|||
public class Messenger : BaseEscortable
|
||||
{
|
||||
[Constructible]
|
||||
public Messenger()
|
||||
{
|
||||
Title = "the messenger";
|
||||
}
|
||||
public Messenger() => Title = "the messenger";
|
||||
|
||||
public Messenger(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Mobiles
|
|||
public class Minter : Banker
|
||||
{
|
||||
[Constructible]
|
||||
public Minter()
|
||||
{
|
||||
Title = "the minter";
|
||||
}
|
||||
public Minter() => Title = "the minter";
|
||||
|
||||
public Minter(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,10 +5,7 @@ namespace Server.Mobiles
|
|||
public class Peasant : BaseEscortable
|
||||
{
|
||||
[Constructible]
|
||||
public Peasant()
|
||||
{
|
||||
Title = "the peasant";
|
||||
}
|
||||
public Peasant() => Title = "the peasant";
|
||||
|
||||
public Peasant(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,10 +18,7 @@ namespace Server.Mobiles
|
|||
};
|
||||
|
||||
[Constructible]
|
||||
public SeekerOfAdventure()
|
||||
{
|
||||
Title = "the seeker of adventure";
|
||||
}
|
||||
public SeekerOfAdventure() => Title = "the seeker of adventure";
|
||||
|
||||
public SeekerOfAdventure(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -115,10 +115,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
private ITownCrierEntryList m_Owner;
|
||||
|
||||
public TownCrierDurationPrompt(ITownCrierEntryList owner)
|
||||
{
|
||||
m_Owner = owner;
|
||||
}
|
||||
public TownCrierDurationPrompt(ITownCrierEntryList owner) => m_Owner = owner;
|
||||
|
||||
public override void OnResponse(Mobile from, string text)
|
||||
{
|
||||
|
|
@ -478,10 +475,7 @@ namespace Server.Mobiles
|
|||
base.OnDoubleClick(from);
|
||||
}
|
||||
|
||||
public override bool HandlesOnSpeech(Mobile from)
|
||||
{
|
||||
return m_NewsTimer == null && from.Alive && InRange(from, 12);
|
||||
}
|
||||
public override bool HandlesOnSpeech(Mobile from) => m_NewsTimer == null && from.Alive && InRange(from, 12);
|
||||
|
||||
public override void OnSpeech(SpeechEventArgs e)
|
||||
{
|
||||
|
|
@ -506,10 +500,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
public override bool CanBeDamaged()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool CanBeDamaged() => false;
|
||||
|
||||
public override void OnDelete()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue