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

@ -9,10 +9,7 @@ namespace Server.Engines.Quests
{
private BaseQuester m_Quester;
public TalkEntry(BaseQuester quester) : base(quester.TalkNumber)
{
m_Quester = quester;
}
public TalkEntry(BaseQuester quester) : base(quester.TalkNumber) => m_Quester = quester;
public override void OnClick()
{
@ -52,20 +49,11 @@ namespace Server.Engines.Quests
public abstract void OnTalk(PlayerMobile player, bool contextMenu);
public virtual bool CanTalkTo(PlayerMobile to)
{
return true;
}
public virtual bool CanTalkTo(PlayerMobile to) => true;
public virtual int GetAutoTalkRange(PlayerMobile m)
{
return -1;
}
public virtual int GetAutoTalkRange(PlayerMobile m) => -1;
public override bool CanBeDamaged()
{
return false;
}
public override bool CanBeDamaged() => false;
protected Item SetHue(Item item, int hue)
{

View file

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

View file

@ -41,10 +41,7 @@ namespace Server.Engines.Quests
public override int LabelNumber => 1049117; // Horn of Retreat
public virtual bool ValidateUse(Mobile from)
{
return true;
}
public virtual bool ValidateUse(Mobile from) => true;
public override void GetProperties(ObjectPropertyList list)
{

View file

@ -10,10 +10,7 @@ namespace Server.Engines.Quests
{
}
public QuestCallbackEntry(int number, int range, QuestCallback callback) : base(number, range)
{
m_Callback = callback;
}
public QuestCallbackEntry(int number, int range, QuestCallback callback) : base(number, range) => m_Callback = callback;
public override void OnClick()
{

View file

@ -107,10 +107,7 @@ namespace Server.Engines.Quests
{
}
public virtual bool GetTimerEvent()
{
return !Completed;
}
public virtual bool GetTimerEvent() => !Completed;
public virtual void CheckProgress()
{
@ -120,19 +117,13 @@ namespace Server.Engines.Quests
{
}
public virtual bool GetKillEvent(BaseCreature creature, Container corpse)
{
return !Completed;
}
public virtual bool GetKillEvent(BaseCreature creature, Container corpse) => !Completed;
public virtual void OnKill(BaseCreature creature, Container corpse)
{
}
public virtual bool IgnoreYoungProtection(Mobile from)
{
return false;
}
public virtual bool IgnoreYoungProtection(Mobile from) => false;
}
public class QuestLogUpdatedGump : BaseQuestGump

View file

@ -393,10 +393,7 @@ namespace Server.Engines.Quests
From.SendLocalizedMessage(1049018); // You have declined the Quest.
}
public static bool CanOfferQuest(Mobile check, Type questType)
{
return CanOfferQuest(check, questType, out _);
}
public static bool CanOfferQuest(Mobile check, Type questType) => CanOfferQuest(check, questType, out _);
public static bool CanOfferQuest(Mobile check, Type questType, out bool inRestartPeriod)
{
@ -635,10 +632,7 @@ namespace Server.Engines.Quests
return (r << 16) | (g << 8) | (b << 0);
}
public static int C16216(int c16)
{
return c16 & 0x7FFF;
}
public static int C16216(int c16) => c16 & 0x7FFF;
public static int C32216(int c32)
{
@ -651,10 +645,7 @@ namespace Server.Engines.Quests
return (r << 10) | (g << 5) | (b << 0);
}
public static string Color(string text, int color)
{
return $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
}
public static string Color(string text, int color) => $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
public void AddHtmlObject(int x, int y, int width, int height, object message, int color, bool back, bool scroll)
{