private void copyStatMultipliersToSettingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (cc?.multipliers != null)
     {
         for (int s = 0; s < 8; s++)
         {
             cc.multipliers[s] = statControls[s].StatMultipliers;
         }
         cc.imprintingMultiplier = (double)nudIBM.Value;
         OnApplyMultipliers?.Invoke();
     }
 }
Exemple #2
0
        private void copyStatMultipliersToSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (cc?.serverMultipliers?.statMultipliers == null)
            {
                return;
            }

            for (int s = 0; s < Values.STATS_COUNT; s++)
            {
                cc.serverMultipliers.statMultipliers[s] = statControls[s].StatMultipliers;
            }
            cc.serverMultipliers.BabyImprintingStatScaleMultiplier = (double)nudIBM.Value;
            OnApplyMultipliers?.Invoke();
        }
Exemple #3
0
        private void copyStatMultipliersToSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (cc?.serverMultipliers?.statMultipliers == null)
            {
                return;
            }

            for (int s = 0; s < Values.STATS_COUNT; s++)
            {
                cc.serverMultipliers.statMultipliers[s] = statControls[s].StatMultipliers;
            }
            cc.serverMultipliers.BabyImprintingStatScaleMultiplier = (double)nudIBM.Value;
            cc.singlePlayerSettings = cbSingleplayerSettings.Checked;
            OnApplyMultipliers?.Invoke();
            btUseMultipliersFromSettings.Visible = false;
        }
Exemple #4
0
        private void copyStatMultipliersToSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_cc?.serverMultipliers?.statMultipliers == null)
            {
                return;
            }

            for (int s = 0; s < Values.STATS_COUNT; s++)
            {
                _cc.serverMultipliers.statMultipliers[s] = _statControls[s].StatMultipliers;
                _statControls[s].SetStatMultiplierWithoutChangingInputs(_statControls[s].StatMultipliers);
            }
            _cc.serverMultipliers.BabyImprintingStatScaleMultiplier = (double)nudIBM.Value;
            _cc.singlePlayerSettings = cbSingleplayerSettings.Checked;
            _cc.serverMultipliers.AllowFlyerSpeedLeveling = CbAllowFlyerSpeedLeveling.Checked;
            OnApplyMultipliers?.Invoke();
            btUseMultipliersFromSettings.Visible = false;
        }