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

@ -2,45 +2,37 @@ using System.Collections.Generic;
namespace Server.Mobiles
{
public class SBAnimalTrainer : SBInfo
{
public SBAnimalTrainer()
{
}
public class SBAnimalTrainer : 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 AnimalBuyInfo(1, typeof(Cat), 132, 10, 201, 0));
Add(new AnimalBuyInfo(1, typeof(Dog), 170, 10, 217, 0));
Add(new AnimalBuyInfo(1, typeof(Horse), 550, 10, 204, 0));
Add(new AnimalBuyInfo(1, typeof(PackHorse), 631, 10, 291, 0));
Add(new AnimalBuyInfo(1, typeof(PackLlama), 565, 10, 292, 0));
Add(new AnimalBuyInfo(1, typeof(Rabbit), 106, 10, 205, 0));
public class InternalBuyInfo : List<GenericBuyInfo>
{
public InternalBuyInfo()
{
Add( new AnimalBuyInfo( 1, typeof( Cat ), 132, 10, 201, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( Dog ), 170, 10, 217, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( Horse ), 550, 10, 204, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( PackHorse ), 631, 10, 291, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( PackLlama ), 565, 10, 292, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( Rabbit ), 106, 10, 205, 0 ) );
if (!Core.AOS)
{
Add(new AnimalBuyInfo(1, typeof(Eagle), 402, 10, 5, 0));
Add(new AnimalBuyInfo(1, typeof(BrownBear), 855, 10, 167, 0));
Add(new AnimalBuyInfo(1, typeof(GrizzlyBear), 1767, 10, 212, 0));
Add(new AnimalBuyInfo(1, typeof(Panther), 1271, 10, 214, 0));
Add(new AnimalBuyInfo(1, typeof(TimberWolf), 768, 10, 225, 0));
Add(new AnimalBuyInfo(1, typeof(Rat), 107, 10, 238, 0));
}
}
}
if ( !Core.AOS )
{
Add( new AnimalBuyInfo( 1, typeof( Eagle ), 402, 10, 5, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( BrownBear ), 855, 10, 167, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( GrizzlyBear ), 1767, 10, 212, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( Panther ), 1271, 10, 214, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( TimberWolf ), 768, 10, 225, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( Rat ), 107, 10, 238, 0 ) );
}
}
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
}
}
}
}
public class InternalSellInfo : GenericSellInfo
{
}
}
}