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

@ -6,10 +6,7 @@ namespace Server.Items
{
private ClothingBlessDeed m_Deed;
public ClothingBlessTarget(ClothingBlessDeed deed) : base(1, false, TargetFlags.None)
{
m_Deed = deed;
}
public ClothingBlessTarget(ClothingBlessDeed deed) : base(1, false, TargetFlags.None) => m_Deed = deed;
protected override void OnTarget(Mobile from, object target) // Override the protected OnTarget() for our feature
{

View file

@ -187,10 +187,7 @@ namespace Server.Items
{
private CommodityDeed m_Deed;
public InternalTarget(CommodityDeed deed) : base(3, false, TargetFlags.None)
{
m_Deed = deed;
}
public InternalTarget(CommodityDeed deed) : base(3, false, TargetFlags.None) => m_Deed = deed;
protected override void OnTarget(Mobile from, object targeted)
{

View file

@ -12,10 +12,7 @@ namespace Server.Items
private bool m_Exceptional;
private CraftResource m_Resource;
public DragonBardingDeed() : base(0x14F0)
{
Weight = 1.0;
}
public DragonBardingDeed() : base(0x14F0) => Weight = 1.0;
public DragonBardingDeed(Serial serial) : base(serial)
{

View file

@ -7,10 +7,7 @@ namespace Server.Items
public class NameChangeDeed : Item
{
[Constructible]
public NameChangeDeed() : base(0x14F0)
{
LootType = LootType.Blessed;
}
public NameChangeDeed() : base(0x14F0) => LootType = LootType.Blessed;
public NameChangeDeed(Serial serial) : base(serial)
{
@ -82,15 +79,9 @@ namespace Server.Items
AddTextEntry(x + 2, y + 2, width - 4, height - 4, 0, index, "");
}
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 void AddButtonLabeled(int x, int y, int buttonID, string text)
{

View file

@ -80,10 +80,7 @@ namespace Server.Items
{
private NewPlayerTicket m_Ticket;
public InternalTarget(NewPlayerTicket ticket) : base(2, false, TargetFlags.None)
{
m_Ticket = ticket;
}
public InternalTarget(NewPlayerTicket ticket) : base(2, false, TargetFlags.None) => m_Ticket = ticket;
protected override void OnTarget(Mobile from, object targeted)
{

View file

@ -225,10 +225,7 @@ namespace Server.Items
{
private VendorRentalContract m_Contract;
public ContractOptionEntry(VendorRentalContract contract) : base(6209)
{
m_Contract = contract;
}
public ContractOptionEntry(VendorRentalContract contract) : base(6209) => m_Contract = contract;
public override void OnClick()
{
@ -246,10 +243,7 @@ namespace Server.Items
{
private VendorRentalContract m_Contract;
public RentTarget(VendorRentalContract contract) : base(-1, false, TargetFlags.None)
{
m_Contract = contract;
}
public RentTarget(VendorRentalContract contract) : base(-1, false, TargetFlags.None) => m_Contract = contract;
protected override void OnTarget(Mobile from, object targeted)
{