public static double gainExp(double expValue) { expValue = System.Math.Floor(expValue * RerollManager.getRerollExpMult(rerollPoints)); stats[Stat.TOTAL_ACCUMULATED_EXP] += expValue; experience += expValue; return(expValue); }
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)); }
double getTotalSellValueToShow() { double totalSellValue = 0; foreach (Card c in cardsToSell) { totalSellValue += System.Math.Floor(c.cardEffect.cardPoints * RerollManager.getRerollExpMult(Player.rerollPoints)); } return(totalSellValue); }