private void bt_DS_Click(object sender, EventArgs e) { if (nud_HPCURR.Value == 0) //Jen kdyz hp sou down { if (Pocitani.Roll20() < 10) // DS fail { if (chb_fail1.Checked == false) { chb_fail1.Checked = true; return; } if (chb_fail1.Checked == true && chb_fail2.Checked == false) { chb_fail2.Checked = true; return; } if (chb_fail1.Checked == true && chb_fail2.Checked == true && chb_fail3.Checked == false) { chb_fail3.Checked = true; return; } } if (Pocitani.Roll20() > 10 && Pocitani.Roll20() < 20) //DS succ { if (chb_succ1.Checked == false) { chb_succ1.Checked = true; return; } if (chb_succ1.Checked == true && chb_succ2.Checked == false) { chb_succ2.Checked = true; return; } if (chb_succ1.Checked == true && chb_succ2.Checked == true && chb_succ3.Checked == false) { chb_succ3.Checked = true; return; } } if (Pocitani.Roll20() == 20) //DS s NAT 20 { nud_HPCURR.Value = 1; } } }
private void b_CHAR_Click(object sender, EventArgs e) { tb_final.Text = (Pocitani.Roll20() + Convert.ToInt32(lb_modif_cha.Text)).ToString(); }
private void b_INT_Click(object sender, EventArgs e) { tb_final.Text = (Convert.ToInt32(lb_modif_wis.Text) + Pocitani.Roll20()).ToString(); }