### BREAKING CHANGE ### The constructor for `TextDefinition` has been removed. Instead use `TextDefinition.Of()` or cast the integer/string to TextDefinition.
86 lines
2.1 KiB
C#
86 lines
2.1 KiB
C#
using System;
|
|
|
|
namespace Server.Factions
|
|
{
|
|
public class VendorDefinition
|
|
{
|
|
public VendorDefinition(
|
|
Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header,
|
|
TextDefinition label
|
|
)
|
|
{
|
|
Type = type;
|
|
|
|
Price = price;
|
|
Upkeep = upkeep;
|
|
Maximum = maximum;
|
|
ItemID = itemID;
|
|
|
|
Header = header;
|
|
Label = label;
|
|
}
|
|
|
|
public Type Type { get; }
|
|
|
|
public int Price { get; }
|
|
|
|
public int Upkeep { get; }
|
|
|
|
public int Maximum { get; }
|
|
|
|
public int ItemID { get; }
|
|
|
|
public TextDefinition Header { get; }
|
|
|
|
public TextDefinition Label { get; }
|
|
|
|
public static VendorDefinition[] Definitions { get; } =
|
|
{
|
|
new(
|
|
typeof(FactionBottleVendor),
|
|
0xF0E,
|
|
5000,
|
|
1000,
|
|
10,
|
|
1011549, // POTION BOTTLE VENDOR
|
|
1011544 // Buy Potion Bottle Vendor
|
|
),
|
|
new(
|
|
typeof(FactionBoardVendor),
|
|
0x1BD7,
|
|
3000,
|
|
500,
|
|
10,
|
|
1011552, // WOOD VENDOR
|
|
1011545 // Buy Wooden Board Vendor
|
|
),
|
|
new(
|
|
typeof(FactionOreVendor),
|
|
0x19B8,
|
|
3000,
|
|
500,
|
|
10,
|
|
1011553, // IRON ORE VENDOR
|
|
1011546 // Buy Iron Ore Vendor
|
|
),
|
|
new(
|
|
typeof(FactionReagentVendor),
|
|
0xF86,
|
|
5000,
|
|
1000,
|
|
10,
|
|
1011554, // REAGENT VENDOR
|
|
1011547 // Buy Reagent Vendor
|
|
),
|
|
new(
|
|
typeof(FactionHorseVendor),
|
|
0x20DD,
|
|
5000,
|
|
1000,
|
|
1,
|
|
1011556, // HORSE BREEDER
|
|
1011555 // Buy Horse Breeder
|
|
)
|
|
};
|
|
}
|
|
}
|