コード例 #1
0
 private void UpdateKOCounting(double boneDamageAdjuster = 0)
 {
     if (boneDamageAdjuster == 0)
     {
         boneDamageAdjuster = currentBoneDamageAdjuster;
     }
     lbKOInfo.Text = Taming.KnockoutInfo(selectedSpecies, (int)nudLevel.Value,
                                         chkbDmLongneck.Checked ? (double)nudWDmLongneck.Value / 100 : 0,
                                         chkbDmCrossbow.Checked ? (double)nudWDmCrossbow.Value / 100 : 0,
                                         chkbDmBow.Checked ? (double)nudWDmBow.Value / 100 : 0,
                                         chkbDmSlingshot.Checked ? (double)nudWDmSlingshot.Value / 100 : 0,
                                         chkbDmClub.Checked ? (double)nudWDmClub.Value / 100 : 0,
                                         chkbDmProd.Checked ? (double)nudWDmProd.Value / 100 : 0,
                                         chkbDmHarpoon.Checked ? (double)nudWDmHarpoon.Value / 100 : 0,
                                         boneDamageAdjuster,
                                         out bool knockoutNeeded, out koNumbers) + (boneDamageAdjustersImmobilization.Length > 0 ? "\n\n" + boneDamageAdjustersImmobilization : "");
     lbKOInfo.ForeColor = knockoutNeeded ? SystemColors.ControlText : SystemColors.GrayText;
     if (!knockoutNeeded)
     {
         koNumbers = "";
     }
 }