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

@ -224,28 +224,6 @@ namespace Server.Items
return water;
}
#if false
private class MessageGump : Gump
{
public MessageGump( MessageEntry entry, Map map, Point3D loc ) : base( (640 - entry.Width) / 2, (480 - entry.Height) / 2 )
{
int xLong = 0, yLat = 0;
int xMins = 0, yMins = 0;
bool xEast = false, ySouth = false;
string fmt;
if ( Sextant.Format( loc, map, ref xLong, ref yLat, ref xMins, ref yMins, ref xEast, ref ySouth ) )
fmt =
String.Format( "{0}°{1}'{2},{3}°{4}'{5}", yLat, yMins, ySouth ? "S" : "N", xLong, xMins, xEast ? "E" : "W" );
else
fmt = "?????";
AddPage( 0 );
AddBackground( 0, 0, entry.Width, entry.Height, 2520 );
AddHtml( 38, 38, entry.Width - 83, entry.Height - 86, String.Format( entry.Message, fmt ), false, false );
}
}
#else
private class MessageGump : Gump
{
public MessageGump(MessageEntry entry, Map map, Point3D loc) : base(150, 50)
@ -277,7 +255,6 @@ namespace Server.Items
AddHtmlLocalized(70, 265, 100, 20, 1011036); // OKAY
}
}
#endif
private class MessageEntry
{

View file

@ -5,10 +5,7 @@ namespace Server.Items
public class Sextant : Item
{
[Constructible]
public Sextant() : base(0x1058)
{
Weight = 2.0;
}
public Sextant() : base(0x1058) => Weight = 2.0;
public Sextant(Serial serial) : base(serial)
{

View file

@ -380,10 +380,7 @@ namespace Server.Items
public class FabledFishingNet : SpecialFishingNet
{
[Constructible]
public FabledFishingNet()
{
Hue = 0x481;
}
public FabledFishingNet() => Hue = 0x481;
public FabledFishingNet(Serial serial) : base(serial)
{
@ -395,10 +392,7 @@ namespace Server.Items
{
}
protected override int GetSpawnCount()
{
return base.GetSpawnCount() + 4;
}
protected override int GetSpawnCount() => base.GetSpawnCount() + 4;
protected override void FinishEffect(Point3D p, Map map, Mobile from)
{