Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
 public static float CalculatePriceInExalted(PoeObject poeObject, float chaosPerExaltedOrb)
 {
     return(poeObject.PriceInChaos / chaosPerExaltedOrb);
 }