Esempio n. 1
0
        static bool Prefix()
        {
            if (MPTags.m_multi_powerup_frequency <= 0f)
            {
                return(true);
            }

            float num   = Mathf.Max(1f, MPTags.m_multi_powerup_frequency);
            int   count = NetworkMatch.m_players.Count;

            num *= NetworkMatch.GetNumPlayerSpawnModifier(count);
            int count2 = RobotManager.m_master_item_list.Count;

            if (count2 > 10)
            {
                num += (float)(count2 - 10) * 0.5f;
            }
            num *= NetworkMatch.GetSpawnMultiplier();
            AccessTools.Field(typeof(NetworkMatch), "m_spawn_basic_timer").SetValue(null, num);
            return(false);
        }