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,84 +3,79 @@ using Server.Items;
namespace Server.Mobiles
{
public class SBCook : SBInfo
{
public SBCook()
{
}
public class SBCook : 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(BreadLoaf), 5, 20, 0x103B, 0));
Add(new GenericBuyInfo(typeof(BreadLoaf), 5, 20, 0x103C, 0));
Add(new GenericBuyInfo(typeof(ApplePie), 7, 20, 0x1041, 0)); //OSI just has Pie, not Apple/Fruit/Meat
Add(new GenericBuyInfo(typeof(Cake), 13, 20, 0x9E9, 0));
Add(new GenericBuyInfo(typeof(Muffins), 3, 20, 0x9EA, 0));
public class InternalBuyInfo : List<GenericBuyInfo>
{
public InternalBuyInfo()
{
Add( new GenericBuyInfo( typeof( BreadLoaf ), 5, 20, 0x103B, 0 ) );
Add( new GenericBuyInfo( typeof( BreadLoaf ), 5, 20, 0x103C, 0 ) );
Add( new GenericBuyInfo( typeof( ApplePie ), 7, 20, 0x1041, 0 ) ); //OSI just has Pie, not Apple/Fruit/Meat
Add( new GenericBuyInfo( typeof( Cake ), 13, 20, 0x9E9, 0 ) );
Add( new GenericBuyInfo( typeof( Muffins ), 3, 20, 0x9EA, 0 ) );
Add(new GenericBuyInfo(typeof(CheeseWheel), 21, 10, 0x97E, 0));
Add(new GenericBuyInfo(typeof(CookedBird), 17, 20, 0x9B7, 0));
Add(new GenericBuyInfo(typeof(LambLeg), 8, 20, 0x160A, 0));
Add(new GenericBuyInfo(typeof(ChickenLeg), 5, 20, 0x1608, 0));
Add( new GenericBuyInfo( typeof( CheeseWheel ), 21, 10, 0x97E, 0 ) );
Add( new GenericBuyInfo( typeof( CookedBird ), 17, 20, 0x9B7, 0 ) );
Add( new GenericBuyInfo( typeof( LambLeg ), 8, 20, 0x160A, 0 ) );
Add( new GenericBuyInfo( typeof( ChickenLeg ), 5, 20, 0x1608, 0 ) );
Add(new GenericBuyInfo(typeof(WoodenBowlOfCarrots), 3, 20, 0x15F9, 0));
Add(new GenericBuyInfo(typeof(WoodenBowlOfCorn), 3, 20, 0x15FA, 0));
Add(new GenericBuyInfo(typeof(WoodenBowlOfLettuce), 3, 20, 0x15FB, 0));
Add(new GenericBuyInfo(typeof(WoodenBowlOfPeas), 3, 20, 0x15FC, 0));
Add(new GenericBuyInfo(typeof(EmptyPewterBowl), 2, 20, 0x15FD, 0));
Add(new GenericBuyInfo(typeof(PewterBowlOfCorn), 3, 20, 0x15FE, 0));
Add(new GenericBuyInfo(typeof(PewterBowlOfLettuce), 3, 20, 0x15FF, 0));
Add(new GenericBuyInfo(typeof(PewterBowlOfPeas), 3, 20, 0x1600, 0));
Add(new GenericBuyInfo(typeof(PewterBowlOfPotatos), 3, 20, 0x1601, 0));
Add(new GenericBuyInfo(typeof(WoodenBowlOfStew), 3, 20, 0x1604, 0));
Add(new GenericBuyInfo(typeof(WoodenBowlOfTomatoSoup), 3, 20, 0x1606, 0));
Add( new GenericBuyInfo( typeof( WoodenBowlOfCarrots ), 3, 20, 0x15F9, 0 ) );
Add( new GenericBuyInfo( typeof( WoodenBowlOfCorn ), 3, 20, 0x15FA, 0 ) );
Add( new GenericBuyInfo( typeof( WoodenBowlOfLettuce ), 3, 20, 0x15FB, 0 ) );
Add( new GenericBuyInfo( typeof( WoodenBowlOfPeas ), 3, 20, 0x15FC, 0 ) );
Add( new GenericBuyInfo( typeof( EmptyPewterBowl ), 2, 20, 0x15FD, 0 ) );
Add( new GenericBuyInfo( typeof( PewterBowlOfCorn ), 3, 20, 0x15FE, 0 ) );
Add( new GenericBuyInfo( typeof( PewterBowlOfLettuce ), 3, 20, 0x15FF, 0 ) );
Add( new GenericBuyInfo( typeof( PewterBowlOfPeas ), 3, 20, 0x1600, 0 ) );
Add( new GenericBuyInfo( typeof( PewterBowlOfPotatos ), 3, 20, 0x1601, 0 ) );
Add( new GenericBuyInfo( typeof( WoodenBowlOfStew ), 3, 20, 0x1604, 0 ) );
Add( new GenericBuyInfo( typeof( WoodenBowlOfTomatoSoup ), 3, 20, 0x1606, 0 ) );
Add(new GenericBuyInfo(typeof(RoastPig), 106, 20, 0x9BB, 0));
Add(new GenericBuyInfo(typeof(SackFlour), 3, 20, 0x1039, 0));
Add(new GenericBuyInfo(typeof(JarHoney), 3, 20, 0x9EC, 0));
Add(new GenericBuyInfo(typeof(RollingPin), 2, 20, 0x1043, 0));
Add(new GenericBuyInfo(typeof(FlourSifter), 2, 20, 0x103E, 0));
Add(new GenericBuyInfo("1044567", typeof(Skillet), 3, 20, 0x97F, 0));
}
}
Add( new GenericBuyInfo( typeof( RoastPig ), 106, 20, 0x9BB, 0 ) );
Add( new GenericBuyInfo( typeof( SackFlour ), 3, 20, 0x1039, 0 ) );
Add( new GenericBuyInfo( typeof( JarHoney ), 3, 20, 0x9EC, 0 ) );
Add( new GenericBuyInfo( typeof( RollingPin ), 2, 20, 0x1043, 0 ) );
Add( new GenericBuyInfo( typeof( FlourSifter ), 2, 20, 0x103E, 0 ) );
Add( new GenericBuyInfo( "1044567", typeof( Skillet ), 3, 20, 0x97F, 0 ) );
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add(typeof(CheeseWheel), 12);
Add(typeof(CookedBird), 8);
Add(typeof(RoastPig), 53);
Add(typeof(Cake), 5);
Add(typeof(JarHoney), 1);
Add(typeof(SackFlour), 1);
Add(typeof(BreadLoaf), 2);
Add(typeof(ChickenLeg), 3);
Add(typeof(LambLeg), 4);
Add(typeof(Skillet), 1);
Add(typeof(FlourSifter), 1);
Add(typeof(RollingPin), 1);
Add(typeof(Muffins), 1);
Add(typeof(ApplePie), 3);
}
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add( typeof( CheeseWheel ), 12 );
Add( typeof( CookedBird ), 8 );
Add( typeof( RoastPig ), 53 );
Add( typeof( Cake ), 5 );
Add( typeof( JarHoney ), 1 );
Add( typeof( SackFlour ), 1 );
Add( typeof( BreadLoaf ), 2 );
Add( typeof( ChickenLeg ), 3 );
Add( typeof( LambLeg ), 4 );
Add( typeof( Skillet ), 1 );
Add( typeof( FlourSifter ), 1 );
Add( typeof( RollingPin ), 1 );
Add( typeof( Muffins ), 1 );
Add( typeof( ApplePie ), 3 );
Add( typeof( WoodenBowlOfCarrots ), 1 );
Add( typeof( WoodenBowlOfCorn ), 1 );
Add( typeof( WoodenBowlOfLettuce ), 1 );
Add( typeof( WoodenBowlOfPeas ), 1 );
Add( typeof( EmptyPewterBowl ), 1 );
Add( typeof( PewterBowlOfCorn ), 1 );
Add( typeof( PewterBowlOfLettuce ), 1 );
Add( typeof( PewterBowlOfPeas ), 1 );
Add( typeof( PewterBowlOfPotatos ), 1 );
Add( typeof( WoodenBowlOfStew ), 1 );
Add( typeof( WoodenBowlOfTomatoSoup ), 1 );
}
}
}
}
Add(typeof(WoodenBowlOfCarrots), 1);
Add(typeof(WoodenBowlOfCorn), 1);
Add(typeof(WoodenBowlOfLettuce), 1);
Add(typeof(WoodenBowlOfPeas), 1);
Add(typeof(EmptyPewterBowl), 1);
Add(typeof(PewterBowlOfCorn), 1);
Add(typeof(PewterBowlOfLettuce), 1);
Add(typeof(PewterBowlOfPeas), 1);
Add(typeof(PewterBowlOfPotatos), 1);
Add(typeof(WoodenBowlOfStew), 1);
Add(typeof(WoodenBowlOfTomatoSoup), 1);
}
}
}
}