Esempio n. 1
0
        private static double calculateRatio(CurrencyRatio ratio)
        {
            if (ratio.OrbAmount == 1)
                return ratio.OrbAmount * ratio.ChaosAmount;

            return ratio.ChaosAmount / ratio.OrbAmount;
        }
Esempio n. 2
0
        private static double calculateRatio(CurrencyRatio ratio)
        {
            if (ratio.OrbAmount == 1)
                return ratio.OrbAmount * ratio.ChaosAmount;

            return ratio.ChaosAmount / ratio.OrbAmount;
        }
Esempio n. 3
0
        internal static double GetChaosValue(OrbType type)
        {
            if (!Settings.CurrencyRatios.ContainsKey(type))
            {
                return(0);
            }

            CurrencyRatio ratio = Settings.CurrencyRatios[type];

            if (ratio.ChaosAmount < ratio.OrbAmount)
            {
                return(ratio.ChaosAmount / ratio.OrbAmount);
            }

            return(ratio.OrbAmount * ratio.ChaosAmount);
        }