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

@ -100,10 +100,7 @@ namespace Server.Items
{
private Bandage m_Bandage;
public InternalTarget(Bandage bandage) : base(Bandage.Range, false, TargetFlags.Beneficial)
{
m_Bandage = bandage;
}
public InternalTarget(Bandage bandage) : base(Bandage.Range, false, TargetFlags.Beneficial) => m_Bandage = bandage;
protected override void OnTarget(Mobile from, object targeted)
{

View file

@ -196,10 +196,7 @@ namespace Server.Items
{
private FireHorn m_Horn;
public InternalTarget(FireHorn horn) : base(Core.AOS ? 3 : 2, true, TargetFlags.Harmful)
{
m_Horn = horn;
}
public InternalTarget(FireHorn horn) : base(Core.AOS ? 3 : 2, true, TargetFlags.Harmful) => m_Horn = horn;
protected override void OnTarget(Mobile from, object targeted)
{

View file

@ -13,10 +13,7 @@ namespace Server.Items
}
[Constructible]
public RecipeScroll(int recipeID) : base(0x2831)
{
m_RecipeID = recipeID;
}
public RecipeScroll(int recipeID) : base(0x2831) => m_RecipeID = recipeID;
public RecipeScroll(Serial serial)
: base(serial)

View file

@ -156,11 +156,7 @@ namespace Server.Items
return false;
}
public bool VerifyRegion(Mobile m)
{
//TODO: When the entire region system data is in, convert to that instead of a proximity thing.
return m.Region.IsPartOf<TownRegion>() && Faction.IsNearType(m, RepairSkillInfo.GetInfo(m_Skill).NearbyTypes, 6);
}
public bool VerifyRegion(Mobile m) => m.Region.IsPartOf<TownRegion>() && Faction.IsNearType(m, RepairSkillInfo.GetInfo(m_Skill).NearbyTypes, 6);
public override void Serialize(GenericWriter writer)
{