Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -10,7 +10,9 @@
public override void GetRewards(MLQuestInstance instance)
{
if (AwardHumanInNeed)
{
HumanInNeed.AwardTo(instance.Player);
}
base.GetRewards(instance);
}

View file

@ -148,11 +148,15 @@ namespace Server.Engines.MLQuests.Definitions
pm.AcquireRecipe(32);
if (pm.Skills.Blacksmith.Base < 45.0) // TODO: Verify threshold
{
pm.SendLocalizedMessage(
1075005
); // You observe carefully but you can't grasp the complexities of smithing a bone handled machete.
}
else
{
pm.SendLocalizedMessage(1075006); // You have learned how to smith a bone handled machete!
}
}
base.GetRewards(instance);

View file

@ -141,9 +141,13 @@ namespace Server.Engines.MLQuests.Definitions
AddItem(new Sandals(Utility.RandomPinkHue()));
if (Utility.RandomBool())
{
AddItem(new Kilt(Utility.RandomPinkHue()));
}
else
{
AddItem(new Skirt(Utility.RandomPinkHue()));
}
AddItem(new FancyShirt(Utility.RandomRedHue()));
}

View file

@ -2320,9 +2320,13 @@ namespace Server.Engines.MLQuests.Definitions
AddItem(new Cloak(Utility.RandomBrightHue()));
if (Utility.RandomBool())
{
AddItem(new Kilt(0x387));
}
else
{
AddItem(new Skirt(0x387));
}
}
public Alejaha(Serial serial)
@ -2443,9 +2447,13 @@ namespace Server.Engines.MLQuests.Definitions
AddItem(new RoyalCirclet());
if (Utility.RandomBool())
{
AddItem(new Boots(Utility.RandomYellowHue()));
}
else
{
AddItem(new ThighBoots(Utility.RandomYellowHue()));
}
}
public Ciala(Serial serial)

View file

@ -722,7 +722,9 @@ namespace Server.Engines.MLQuests.Definitions
var item = base.CreateItem();
if (item is Spellbook book)
{
book.Content = (1ul << book.BookCount) - 1;
}
return item;
}

View file

@ -12,7 +12,9 @@ namespace Server.Engines.MLQuests.Definitions
public static void AwardTo(PlayerMobile pm)
{
if (pm == null)
{
return;
}
var context = MLQuestSystem.GetOrCreateContext(pm);