Пример #1
0
 public Exp(int[] arr, int level, bool isShipExp)
 {
     IsOverflow = false;
     Next       = 0;
     Current    = arr[0];
     if (isShipExp)//舰娘exp
     {
         Next      = arr[1];
         NextLevel = Current + Next;
         PrevLevel = ConstData.GetShipExp(level);
     }
     else//提督exp
     {
         NextLevel = arr[1];
         if (NextLevel != 0)
         {
             Next = NextLevel - Current;
         }
         else
         {
             IsOverflow = true;
         }
         PrevLevel = ConstData.GetAdmiralExp(level);
     }
 }
Пример #2
0
 public Exp(int exp, int level)//提督exp
 {
     Current   = exp;
     NextLevel = ConstData.GetAdmiralExp(level + 1);
     PrevLevel = ConstData.GetAdmiralExp(level);
     if (NextLevel != 0)
     {
         Next = NextLevel - Current;
     }
     else
     {
         IsOverflow = true;
     }
 }