예제 #1
0
 public LeveledItemList()
 {
     levelCurve = new LeveledCurve((playerLevel, itemLevel) =>
     {
         double diff = Math.Abs(itemLevel - playerLevel);
         // Return the probability multiplier we want for this current itemLevel
         if (diff > 10)
         {
             return(-1);
         }
         return(Math.Pow(2, -diff));
     });
 }
예제 #2
0
 public LeveledItemList(LeveledCurve curve)
 {
     this.levelCurve = curve;
 }
예제 #3
0
 public LeveledPool(LeveledCurve curve)
 {
     this.levelCurve = curve;
 }