public static List <ProphecyValueAnalysis> GetUpgrades() { List <ProphecyValueAnalysis> list = new List <ProphecyValueAnalysis>(); var lines = Properties.Resources.ProphecyRecipes.Split("\r\n"); foreach (string line in lines) { var tokens = CsvLineTokenize(line); BaseUnique baseItem = new BaseUnique { name = tokens[1] }; ResultUnique resultItem = new ResultUnique { name = tokens[2] }; UpgradeProphecy prophecy = new UpgradeProphecy { name = tokens[0], resultItem = resultItem, baseItem = baseItem }; list.Add(new ProphecyValueAnalysis(prophecy)); } return(list); }
public ProphecyValueAnalysis(UpgradeProphecy prophecy) { this.prophecy = prophecy; totalCost = 0; profit = 0; }