Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -1,25 +1,25 @@
using Server.Mobiles;
using Server.Gumps;
using System.Collections.Generic;
using Server.Gumps;
using Server.Mobiles;
namespace Server.Engines.MLQuests.Rewards
{
public abstract class BaseReward
{
public TextDefinition Name { get; set; }
public abstract class BaseReward
{
public BaseReward(TextDefinition name)
{
Name = name;
}
public BaseReward( TextDefinition name )
{
Name = name;
}
public TextDefinition Name{ get; set; }
protected virtual int LabelHeight => 16;
protected virtual int LabelHeight => 16;
public void WriteToGump( Gump g, int x, ref int y )
{
TextDefinition.AddHtmlText( g, x, y, 280, LabelHeight, Name, false, false, 0x15F90, 0xBDE784 );
}
public void WriteToGump(Gump g, int x, ref int y)
{
TextDefinition.AddHtmlText(g, x, y, 280, LabelHeight, Name, false, false, 0x15F90, 0xBDE784);
}
public abstract void AddRewardItems( PlayerMobile pm, List<Item> rewards );
}
}
public abstract void AddRewardItems(PlayerMobile pm, List<Item> rewards);
}
}