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,48 +3,44 @@ using Server.Items;
namespace Server.Mobiles
{
public class SBSECook: SBInfo
{
public SBSECook()
{
}
public class SBSECook : 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(Wasabi), 2, 20, 0x24E8, 0));
Add(new GenericBuyInfo(typeof(Wasabi), 2, 20, 0x24E9, 0));
Add(new GenericBuyInfo(typeof(SushiRolls), 3, 20, 0x283E, 0));
Add(new GenericBuyInfo(typeof(SushiPlatter), 3, 20, 0x2840, 0));
Add(new GenericBuyInfo(typeof(GreenTea), 3, 20, 0x284C, 0));
Add(new GenericBuyInfo(typeof(MisoSoup), 3, 20, 0x284D, 0));
Add(new GenericBuyInfo(typeof(WhiteMisoSoup), 3, 20, 0x284E, 0));
Add(new GenericBuyInfo(typeof(RedMisoSoup), 3, 20, 0x284F, 0));
Add(new GenericBuyInfo(typeof(AwaseMisoSoup), 3, 20, 0x2850, 0));
Add(new GenericBuyInfo(typeof(BentoBox), 6, 20, 0x2836, 0));
Add(new GenericBuyInfo(typeof(BentoBox), 6, 20, 0x2837, 0));
}
}
public class InternalBuyInfo : List<GenericBuyInfo>
{
public InternalBuyInfo()
{
Add( new GenericBuyInfo( typeof( Wasabi ), 2, 20, 0x24E8, 0 ) );
Add( new GenericBuyInfo( typeof( Wasabi ), 2, 20, 0x24E9, 0 ) );
Add( new GenericBuyInfo( typeof( SushiRolls ), 3, 20, 0x283E, 0 ) );
Add( new GenericBuyInfo( typeof( SushiPlatter ), 3, 20, 0x2840, 0 ) );
Add( new GenericBuyInfo( typeof( GreenTea ), 3, 20, 0x284C, 0 ) );
Add( new GenericBuyInfo( typeof( MisoSoup ), 3, 20, 0x284D, 0 ) );
Add( new GenericBuyInfo( typeof( WhiteMisoSoup ), 3, 20, 0x284E, 0 ) );
Add( new GenericBuyInfo( typeof( RedMisoSoup ), 3, 20, 0x284F, 0 ) );
Add( new GenericBuyInfo( typeof( AwaseMisoSoup ), 3, 20, 0x2850, 0 ) );
Add( new GenericBuyInfo( typeof( BentoBox ), 6, 20, 0x2836, 0 ) );
Add( new GenericBuyInfo( typeof( BentoBox ), 6, 20, 0x2837, 0 ) );
}
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add( typeof( Wasabi ), 1 );
Add( typeof( BentoBox ), 3 );
Add( typeof( GreenTea ), 1 );
Add( typeof( SushiRolls ), 1 );
Add( typeof( SushiPlatter ), 2 );
Add( typeof( MisoSoup ), 1 );
Add( typeof( RedMisoSoup ), 1 );
Add( typeof( WhiteMisoSoup ), 1 );
Add( typeof( AwaseMisoSoup ), 1 );
}
}
}
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add(typeof(Wasabi), 1);
Add(typeof(BentoBox), 3);
Add(typeof(GreenTea), 1);
Add(typeof(SushiRolls), 1);
Add(typeof(SushiPlatter), 2);
Add(typeof(MisoSoup), 1);
Add(typeof(RedMisoSoup), 1);
Add(typeof(WhiteMisoSoup), 1);
Add(typeof(AwaseMisoSoup), 1);
}
}
}
}