// when the human radio button is clicked private void human_radioButton_CheckedChanged(object sender, EventArgs e) { setRace("Human"); racialBonus_textBox.Text = "All of your abilities will be increased by 5 pts."; race_pictureBox.Image = human; AbilityForm.setSTR(AbilityForm.getSTR() + 5); AbilityForm.setDEX(AbilityForm.getDEX() + 5); AbilityForm.setEND(AbilityForm.getEND() + 5); AbilityForm.setINT(AbilityForm.getINT() + 5); AbilityForm.setPER(AbilityForm.getPER() + 5); AbilityForm.setCHA(AbilityForm.getCHA() + 5); }
// when the halfling radio button is clicked private void halfling_radioButton_CheckedChanged(object sender, EventArgs e) { setRace("Halfling"); racialBonus_textBox.Text = " DEX and INT increased by 20 pts,STR decreased by 10 pts"; race_pictureBox.Image = halfling; AbilityForm.setDEX(AbilityForm.getDEX() + 20); AbilityForm.setINT(AbilityForm.getINT() + 20); if (AbilityForm.getSTR() >= 13) { AbilityForm.setSTR(AbilityForm.getSTR() - 10); } else { AbilityForm.setSTR(3); } }