Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 • committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -82,10 +82,7 @@ namespace Server.Items
public override double DefaultWeight => 1.0;
public bool ValidLocation()
{
return m_PlotLocation != Point3D.Zero && m_Facet != null && m_Facet != Map.Internal;
}
public bool ValidLocation() => m_PlotLocation != Point3D.Zero && m_Facet != null && m_Facet != Map.Internal;
public override void GetProperties(ObjectPropertyList list)
{

View file

@ -144,20 +144,11 @@ namespace Server.Gumps
}
}
public string Right(string text)
{
return $"<DIV ALIGN=RIGHT>{text}</DIV>";
}
public string Right(string text) => $"<DIV ALIGN=RIGHT>{text}</DIV>";
public string Center(string text)
{
return $"<CENTER>{text}</CENTER>";
}
public string Center(string text) => $"<CENTER>{text}</CENTER>";
public string Color(string text, int color)
{
return $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
}
public string Color(string text, int color) => $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
public override void OnResponse(NetState sender, RelayInfo info)
{

View file

@ -10,10 +10,8 @@ namespace Server.Regions
private HouseRaffleStone m_Stone;
public HouseRaffleRegion(HouseRaffleStone stone)
: base(null, stone.PlotFacet, DefaultPriority, stone.PlotBounds)
{
: base(null, stone.PlotFacet, DefaultPriority, stone.PlotBounds) =>
m_Stone = stone;
}
public override bool AllowHousing(Mobile from, Point3D p)
{

View file

@ -271,11 +271,9 @@ namespace Server.Items
Timer.DelayCall(TimeSpan.FromMinutes(1.0), TimeSpan.FromMinutes(1.0), CheckEnd_OnTick);
}
public bool ValidLocation()
{
return m_Bounds.Start != Point2D.Zero && m_Bounds.End != Point2D.Zero && m_Facet != null &&
m_Facet != Map.Internal;
}
public bool ValidLocation() =>
m_Bounds.Start != Point2D.Zero && m_Bounds.End != Point2D.Zero && m_Facet != null &&
m_Facet != Map.Internal;
private void InvalidateRegion()
{
@ -362,10 +360,7 @@ namespace Server.Items
return FormatLocation(GetPlotCenter(), m_Facet, true);
}
public string FormatPrice()
{
return m_TicketPrice == 0 ? "FREE" : $"{m_TicketPrice} gold";
}
public string FormatPrice() => m_TicketPrice == 0 ? "FREE" : $"{m_TicketPrice} gold";
public override void GetProperties(ObjectPropertyList list)
{