Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class BambooFlute : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public BambooFlute() : base(0x2805, 0x504, 0x503)
|
||||
{
|
||||
Weight = 2.0;
|
||||
}
|
||||
public BambooFlute() : base(0x2805, 0x504, 0x503) => Weight = 2.0;
|
||||
|
||||
public BambooFlute(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -179,10 +179,7 @@ namespace Server.Items
|
|||
UsesRemaining = UsesRemaining * 100 / GetUsesScalar();
|
||||
}
|
||||
|
||||
public int GetUsesScalar()
|
||||
{
|
||||
return m_Quality == InstrumentQuality.Exceptional ? 200 : 100;
|
||||
}
|
||||
public int GetUsesScalar() => m_Quality == InstrumentQuality.Exceptional ? 200 : 100;
|
||||
|
||||
public void ConsumeUse(Mobile from)
|
||||
{
|
||||
|
|
@ -209,10 +206,7 @@ namespace Server.Items
|
|||
return null;
|
||||
}
|
||||
|
||||
public static int GetBardRange(Mobile bard, SkillName skill)
|
||||
{
|
||||
return 8 + (int)(bard.Skills[skill].Value / 15);
|
||||
}
|
||||
public static int GetBardRange(Mobile bard, SkillName skill) => 8 + (int)(bard.Skills[skill].Value / 15);
|
||||
|
||||
public static void PickInstrument(Mobile from, InstrumentPickedCallback callback)
|
||||
{
|
||||
|
|
@ -241,25 +235,13 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
public static bool IsMageryCreature(BaseCreature bc)
|
||||
{
|
||||
return bc?.AI == AIType.AI_Mage && bc.Skills.Magery.Base > 5.0;
|
||||
}
|
||||
public static bool IsMageryCreature(BaseCreature bc) => bc?.AI == AIType.AI_Mage && bc.Skills.Magery.Base > 5.0;
|
||||
|
||||
public static bool IsFireBreathingCreature(BaseCreature bc)
|
||||
{
|
||||
return bc?.HasBreath == true;
|
||||
}
|
||||
public static bool IsFireBreathingCreature(BaseCreature bc) => bc?.HasBreath == true;
|
||||
|
||||
public static bool IsPoisonImmune(BaseCreature bc)
|
||||
{
|
||||
return bc?.PoisonImmune != null;
|
||||
}
|
||||
public static bool IsPoisonImmune(BaseCreature bc) => bc?.PoisonImmune != null;
|
||||
|
||||
public static int GetPoisonLevel(BaseCreature bc)
|
||||
{
|
||||
return (bc?.HitPoison.Level ?? -1) + 1;
|
||||
}
|
||||
public static int GetPoisonLevel(BaseCreature bc) => (bc?.HitPoison.Level ?? -1) + 1;
|
||||
|
||||
public static double GetBaseDifficulty(Mobile targ)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class Drums : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public Drums() : base(0xE9C, 0x38, 0x39)
|
||||
{
|
||||
Weight = 4.0;
|
||||
}
|
||||
public Drums() : base(0xE9C, 0x38, 0x39) => Weight = 4.0;
|
||||
|
||||
public Drums(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class Harp : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public Harp() : base(0xEB1, 0x43, 0x44)
|
||||
{
|
||||
Weight = 35.0;
|
||||
}
|
||||
public Harp() : base(0xEB1, 0x43, 0x44) => Weight = 35.0;
|
||||
|
||||
public Harp(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class LapHarp : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public LapHarp() : base(0xEB2, 0x45, 0x46)
|
||||
{
|
||||
Weight = 10.0;
|
||||
}
|
||||
public LapHarp() : base(0xEB2, 0x45, 0x46) => Weight = 10.0;
|
||||
|
||||
public LapHarp(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class Lute : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public Lute() : base(0xEB3, 0x4C, 0x4D)
|
||||
{
|
||||
Weight = 5.0;
|
||||
}
|
||||
public Lute() : base(0xEB3, 0x4C, 0x4D) => Weight = 5.0;
|
||||
|
||||
public Lute(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class Tambourine : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public Tambourine() : base(0xE9D, 0x52, 0x53)
|
||||
{
|
||||
Weight = 1.0;
|
||||
}
|
||||
public Tambourine() : base(0xE9D, 0x52, 0x53) => Weight = 1.0;
|
||||
|
||||
public Tambourine(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Items
|
|||
public class TambourineTassel : BaseInstrument
|
||||
{
|
||||
[Constructible]
|
||||
public TambourineTassel() : base(0xE9E, 0x52, 0x53)
|
||||
{
|
||||
Weight = 1.0;
|
||||
}
|
||||
public TambourineTassel() : base(0xE9E, 0x52, 0x53) => Weight = 1.0;
|
||||
|
||||
public TambourineTassel(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue