public static float CalculateLose(SpinChances spinChances, RewardLimits rewardLimits) { return(spinChances.LoseChancePercent + spinChances.FalseChancePercent * (100.0f - rewardLimits.MinFalseReward) * 0.5f / 100.0f); }
public static float CalculateReward(SpinChances spinChances, RewardLimits rewardLimits) { return(spinChances.LuckyChancePercent * (rewardLimits.MaxLuckyReward - 100.0f) * 0.5f / 100.0f + spinChances.BigWinChancePercent * ((rewardLimits.MaxBigReward + rewardLimits.MinBigReward) * 0.5f - 100.0f) / 100.0f); }