Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -3,45 +3,40 @@ using Server.Items;
namespace Server.Mobiles
{
public class SBAxeWeapon: SBInfo
{
public SBAxeWeapon()
{
}
public class SBAxeWeapon : SBInfo
{
public override IShopSellInfo SellInfo{ get; } = new InternalSellInfo();
public override IShopSellInfo SellInfo { get; } = new InternalSellInfo();
public override List<GenericBuyInfo> BuyInfo{ get; } = new InternalBuyInfo();
public override List<GenericBuyInfo> BuyInfo { get; } = new InternalBuyInfo();
public class InternalBuyInfo : List<GenericBuyInfo>
{
public InternalBuyInfo()
{
Add(new GenericBuyInfo(typeof(ExecutionersAxe), 30, 20, 0xF45, 0));
Add(new GenericBuyInfo(typeof(BattleAxe), 26, 20, 0xF47, 0));
Add(new GenericBuyInfo(typeof(TwoHandedAxe), 32, 20, 0x1443, 0));
Add(new GenericBuyInfo(typeof(Axe), 40, 20, 0xF49, 0));
Add(new GenericBuyInfo(typeof(DoubleAxe), 52, 20, 0xF4B, 0));
Add(new GenericBuyInfo(typeof(Pickaxe), 22, 20, 0xE86, 0));
Add(new GenericBuyInfo(typeof(LargeBattleAxe), 33, 20, 0x13FB, 0));
Add(new GenericBuyInfo(typeof(WarAxe), 29, 20, 0x13B0, 0));
}
}
public class InternalBuyInfo : List<GenericBuyInfo>
{
public InternalBuyInfo()
{
Add( new GenericBuyInfo( typeof( ExecutionersAxe ), 30, 20, 0xF45, 0 ) );
Add( new GenericBuyInfo( typeof( BattleAxe ), 26, 20, 0xF47, 0 ) );
Add( new GenericBuyInfo( typeof( TwoHandedAxe ), 32, 20, 0x1443, 0 ) );
Add( new GenericBuyInfo( typeof( Axe ), 40, 20, 0xF49, 0 ) );
Add( new GenericBuyInfo( typeof( DoubleAxe ), 52, 20, 0xF4B, 0 ) );
Add( new GenericBuyInfo( typeof( Pickaxe ), 22, 20, 0xE86, 0 ) );
Add( new GenericBuyInfo( typeof( LargeBattleAxe ), 33, 20, 0x13FB, 0 ) );
Add( new GenericBuyInfo( typeof( WarAxe ), 29, 20, 0x13B0, 0 ) );
}
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add( typeof( BattleAxe ), 13 );
Add( typeof( DoubleAxe ), 26 );
Add( typeof( ExecutionersAxe ), 15 );
Add( typeof( LargeBattleAxe ),16 );
Add( typeof( Pickaxe ), 11 );
Add( typeof( TwoHandedAxe ), 16 );
Add( typeof( WarAxe ), 14 );
Add( typeof( Axe ), 20 );
}
}
}
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add(typeof(BattleAxe), 13);
Add(typeof(DoubleAxe), 26);
Add(typeof(ExecutionersAxe), 15);
Add(typeof(LargeBattleAxe), 16);
Add(typeof(Pickaxe), 11);
Add(typeof(TwoHandedAxe), 16);
Add(typeof(WarAxe), 14);
Add(typeof(Axe), 20);
}
}
}
}