public static PoeObject GetSkillgem(string nameConstant, int gemLevel, bool corrupted, TradingContext context) { try { PoeObject skillGem = context.Gems.First(gem => gem.Name == nameConstant && gem.Level == gemLevel && gem.Corrupted == corrupted); return(skillGem); } catch { return(GetMissingItem(context)); } }
public static float CalculatePriceInExalted(PoeObject poeObject, float chaosPerExaltedOrb) { return(poeObject.PriceInChaos / chaosPerExaltedOrb); }