private static double calculateRatio(CurrencyRatio ratio) { if (ratio.OrbAmount == 1) return ratio.OrbAmount * ratio.ChaosAmount; return ratio.ChaosAmount / ratio.OrbAmount; }
private static double calculateRatio(CurrencyRatio ratio) { if (ratio.OrbAmount == 1) return ratio.OrbAmount * ratio.ChaosAmount; return ratio.ChaosAmount / ratio.OrbAmount; }
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); }