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

@ -5,10 +5,7 @@ namespace Server.Engines.Quests.Ninja
public class EminosKatana : QuestItem
{
[Constructible]
public EminosKatana() : base(0x13FF)
{
Weight = 1.0;
}
public EminosKatana() : base(0x13FF) => Weight = 1.0;
public EminosKatana(Serial serial) : base(serial)
{
@ -16,14 +13,7 @@ namespace Server.Engines.Quests.Ninja
public override int LabelNumber => 1063214; // Daimyo Emino's Katana
public override bool CanDrop(PlayerMobile player)
{
return !(player.Quest is EminosUndertakingQuest);
/*return !qs.IsObjectiveInProgress( typeof( ReturnSwordObjective ) )
&& !qs.IsObjectiveInProgress( typeof( SlayHenchmenObjective ) )
&& !qs.IsObjectiveInProgress( typeof( GiveEminoSwordObjective ) );*/
}
public override bool CanDrop(PlayerMobile player) => !(player.Quest is EminosUndertakingQuest);
public override void Serialize(GenericWriter writer)
{

View file

@ -87,15 +87,9 @@ namespace Server.Engines.Quests.Ninja
base.OnDoubleClick(from);
}
public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight)
{
return false;
}
public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight) => false;
public override bool CheckItemUse(Mobile from, Item item)
{
return item == this;
}
public override bool CheckItemUse(Mobile from, Item item) => item == this;
public override bool CheckLift(Mobile from, Item item, ref LRReason reject)
{

View file

@ -17,12 +17,7 @@ namespace Server.Engines.Quests.Ninja
public override int LabelNumber => 1063186; // A Note for Zoel
public override bool CanDrop(PlayerMobile player)
{
return !(player.Quest is EminosUndertakingQuest);
//return !qs.IsObjectiveInProgress( typeof( GiveZoelNoteObjective ) );
}
public override bool CanDrop(PlayerMobile player) => !(player.Quest is EminosUndertakingQuest);
public override void Serialize(GenericWriter writer)
{

View file

@ -47,10 +47,7 @@ namespace Server.Engines.Quests.Ninja
AddItem(nunchaku);
}
public override int GetAutoTalkRange(PlayerMobile pm)
{
return 2;
}
public override int GetAutoTalkRange(PlayerMobile pm) => 2;
public override void OnTalk(PlayerMobile player, bool contextMenu)
{

View file

@ -13,10 +13,7 @@ namespace Server.Engines.Quests.Ninja
};
[Constructible]
public HiddenFigure()
{
Message = Utility.RandomList(Messages);
}
public HiddenFigure() => Message = Utility.RandomList(Messages);
public HiddenFigure(Serial serial) : base(serial)
{
@ -61,10 +58,7 @@ namespace Server.Engines.Quests.Ninja
AddItem(new Sandals(GetShoeHue()));
}
public override int GetAutoTalkRange(PlayerMobile pm)
{
return 3;
}
public override int GetAutoTalkRange(PlayerMobile pm) => 3;
public override void OnTalk(PlayerMobile player, bool contextMenu)
{

View file

@ -46,15 +46,9 @@ namespace Server.Engines.Quests.Ninja
AddItem(tekagi);
}
public override int GetAutoTalkRange(PlayerMobile pm)
{
return 2;
}
public override int GetAutoTalkRange(PlayerMobile pm) => 2;
public override bool CanTalkTo(PlayerMobile to)
{
return to.Quest is EminosUndertakingQuest;
}
public override bool CanTalkTo(PlayerMobile to) => to.Quest is EminosUndertakingQuest;
public override void OnTalk(PlayerMobile player, bool contextMenu)
{