private IShopListing[] BuildShopListings() { const int CostItem = 6559; // TODO: This is the company chest. Because there's no item for FC credit. :( Item costItem = Sheet.Collection.GetSheet <Item>()[CostItem]; List <IShopListing> listings = new List <IShopListing>(); for (int i = 0; i < ItemCount; ++i) { Item item = As <Item>("Item", i); if (item == null || item.Key == 0) { continue; } int cost = AsInt32("Cost", i); FCRank requiredRank = As <FCRank>("FCRank{Required}", i); listings.Add(new Listing(this, item, costItem, cost, requiredRank)); } return(listings.ToArray()); }
public Listing(FccShop shop, Item rewardItem, Item costItem, int costCount, FCRank requiredFcRank) { _Shop = shop; _Cost = new ShopListingItem(this, costItem, costCount, false); _Reward = new ShopListingItem(this, rewardItem, 1, false); }
public Listing(FccShop shop, Item rewardItem, Item costItem, int costCount, FCRank requiredFcRank) { _Shop = shop; _Cost = new ShopListingItem(this, costItem, costCount, false, 0); _Reward = new ShopListingItem(this, rewardItem, 1, false, 0); }