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

@ -300,9 +300,6 @@ namespace Server.Items
ConsumeCharge(from);
}
public virtual bool OnWandTarget(Mobile from, object o)
{
return true;
}
public virtual bool OnWandTarget(Mobile from, object o) => true;
}
}

View file

@ -2,32 +2,8 @@ namespace Server.Items
{
public class RandomWand
{
public static BaseWand CreateWand()
{
return CreateRandomWand();
}
public static BaseWand CreateWand() => CreateRandomWand();
public static BaseWand CreateRandomWand()
{
return Loot.RandomWand();
/*
switch ( Utility.Random( 11 ) )
{
default:
case 0: return new ClumsyWand();
case 1: return new FeebleWand();
case 2: return new FireballWand();
case 3: return new GreaterHealWand();
case 4: return new HarmWand();
case 5: return new HealWand();
case 6: return new IDWand();
case 7: return new LightningWand();
case 8: return new MagicArrowWand();
case 9: return new ManaDrainWand();
case 10: return new WeaknessWand();
}
*/
}
public static BaseWand CreateRandomWand() => Loot.RandomWand();
}
}

View file

@ -6,15 +6,9 @@ namespace Server.Targeting
{
private BaseWand m_Item;
public WandTarget(BaseWand item) : base(6, false, TargetFlags.None)
{
m_Item = item;
}
public WandTarget(BaseWand item) : base(6, false, TargetFlags.None) => m_Item = item;
private static int GetOffset(Mobile caster)
{
return 5 + (int)(caster.Skills.Magery.Value * 0.02);
}
private static int GetOffset(Mobile caster) => 5 + (int)(caster.Skills.Magery.Value * 0.02);
protected override void OnTarget(Mobile from, object targeted)
{