public void LoadPointItemCost(string token) { foreach (Item item in AllItems) { item.Cost = 0.0f; foreach (var li in item.LocationInfo) { if (li.Source == ItemSource.PVP) { PvpItem pvp = li as PvpItem; if (pvp.PointType == token) { item.Cost = pvp.Points; } } } } // don't need to invalidate relevant caches, but still trigger event to refresh graphs etc. if (ItemsChanged != null) { ItemsChanged(null, null); } }
public static new ItemLocation Construct() { PvpItem item = new PvpItem(); return(item); }