private IEnumerator Slerp() { yield return(new WaitForSeconds(m_delay)); SlerpTarget target = BindingManager.Instance.GetSlerpTarget(m_slerpTarget); int num = Mathf.Max(b: BigDouble.Min(GetProperty <BigDouble>().Value, m_max).ToInt(), a: m_min); for (int i = 0; i < num; i++) { target.SlerpFromHud(base.transform.position); } }
public void AddWelcomeBackCoins(double seconds) { float num = 1f; if (PlayerData.Instance.LifetimePrestiges.Value > 0 || PlayerData.Instance.MainChunk.Value > 70) { num = 0.5f; } BigDouble right = BigDouble.Min(Singleton <HeroTeamRunner> .Instance.GetTeamDamage() / Singleton <WorldRunner> .Instance.MainBiomeConfig.Value.BlockHP * num, new BigDouble(PersistentSingleton <GameSettings> .Instance.WelcomeBackBlocksPerHero) * Singleton <HeroUnlockRunner> .Instance.NumUnlockedHeroes.Value); double value = Math.Min(seconds, TimeSpan.FromDays(2.0).TotalSeconds); PlayerData.Instance.WelcomebackCoins.Value += Singleton <WorldRunner> .Instance.MainBiomeConfig.Value.BlockReward * (value * right) * PersistentSingleton <GameSettings> .Instance.WelcomeBackRewardMultiplier; }