示例#1
0
文件: Player.cs 项目: svm92/RNG-Game
 public static double gainExp(double expValue)
 {
     expValue = System.Math.Floor(expValue * RerollManager.getRerollExpMult(rerollPoints));
     stats[Stat.TOTAL_ACCUMULATED_EXP] += expValue;
     experience += expValue;
     return(expValue);
 }
示例#2
0
 public void TestGetRerollExpMult()
 {
     Assert.AreEqual(1, RerollManager.getRerollExpMult(0));
     Assert.AreEqual(1.625, RerollManager.getRerollExpMult(5));
     Assert.AreEqual(1.875, RerollManager.getRerollExpMult(7));
     Assert.AreEqual(2.25, RerollManager.getRerollExpMult(10));
     Assert.AreEqual(2.875, RerollManager.getRerollExpMult(15));
     Assert.AreEqual(23, RerollManager.getRerollExpMult(176));
 }
示例#3
0
    double getTotalSellValueToShow()
    {
        double totalSellValue = 0;

        foreach (Card c in cardsToSell)
        {
            totalSellValue += System.Math.Floor(c.cardEffect.cardPoints * RerollManager.getRerollExpMult(Player.rerollPoints));
        }
        return(totalSellValue);
    }