Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -3,42 +3,38 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class SBMapmaker : SBInfo
|
||||
{
|
||||
public SBMapmaker()
|
||||
{
|
||||
}
|
||||
public class SBMapmaker : 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(BlankMap), 5, 40, 0x14EC, 0));
|
||||
Add(new GenericBuyInfo(typeof(MapmakersPen), 8, 20, 0x0FBF, 0));
|
||||
Add(new GenericBuyInfo(typeof(BlankScroll), 12, 40, 0xEF3, 0));
|
||||
|
||||
public class InternalBuyInfo : List<GenericBuyInfo>
|
||||
{
|
||||
public InternalBuyInfo()
|
||||
{
|
||||
Add( new GenericBuyInfo( typeof( BlankMap ), 5, 40, 0x14EC, 0 ) );
|
||||
Add( new GenericBuyInfo( typeof( MapmakersPen ), 8, 20, 0x0FBF, 0 ) );
|
||||
Add( new GenericBuyInfo( typeof( BlankScroll ), 12, 40, 0xEF3, 0 ) );
|
||||
for (int i = 0; i < PresetMapEntry.Table.Length; ++i)
|
||||
Add(new PresetMapBuyInfo(PresetMapEntry.Table[i], Utility.RandomMinMax(7, 10), 20));
|
||||
}
|
||||
}
|
||||
|
||||
for ( int i = 0; i < PresetMapEntry.Table.Length; ++i )
|
||||
Add( new PresetMapBuyInfo( PresetMapEntry.Table[i], Utility.RandomMinMax( 7, 10 ), 20 ) );
|
||||
}
|
||||
}
|
||||
|
||||
public class InternalSellInfo : GenericSellInfo
|
||||
{
|
||||
public InternalSellInfo()
|
||||
{
|
||||
Add( typeof( BlankScroll ), 6 );
|
||||
Add( typeof( MapmakersPen ), 4 );
|
||||
Add( typeof( BlankMap ), 2 );
|
||||
Add( typeof( CityMap ), 3 );
|
||||
Add( typeof( LocalMap ), 3 );
|
||||
Add( typeof( WorldMap ), 3 );
|
||||
Add( typeof( PresetMapEntry ), 3 );
|
||||
//TODO: Buy back maps that the mapmaker sells!!!
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public class InternalSellInfo : GenericSellInfo
|
||||
{
|
||||
public InternalSellInfo()
|
||||
{
|
||||
Add(typeof(BlankScroll), 6);
|
||||
Add(typeof(MapmakersPen), 4);
|
||||
Add(typeof(BlankMap), 2);
|
||||
Add(typeof(CityMap), 3);
|
||||
Add(typeof(LocalMap), 3);
|
||||
Add(typeof(WorldMap), 3);
|
||||
Add(typeof(PresetMapEntry), 3);
|
||||
//TODO: Buy back maps that the mapmaker sells!!!
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue