mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-04-25 15:47:19 -05:00
Fix levelup spread evenly
value was a decimal which wasn't parsed back correctly as an int. Closes #135
This commit is contained in:
parent
f0923d5997
commit
be332e7411
|
|
@ -189,7 +189,7 @@ private void B_RandAll_Click(object sender, EventArgs e)
|
|||
dgv.Rows[j].Cells[0].Value = lv + (j - count) + 1;
|
||||
}
|
||||
if (CHK_Spread.Checked)
|
||||
dgv.Rows[j].Cells[0].Value = (j * (NUD_Level.Value / (dgv.Rows.Count - 1))).ToString();
|
||||
dgv.Rows[j].Cells[0].Value = ((int)(j * (NUD_Level.Value / (dgv.Rows.Count - 1)))).ToString();
|
||||
}
|
||||
}
|
||||
CB_Species.SelectedIndex = 0;
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ private void B_RandAll_Click(object sender, EventArgs e)
|
|||
dgv.Rows[j].Cells[0].Value = lv + (j - count) + 1;
|
||||
}
|
||||
if (CHK_Spread.Checked)
|
||||
dgv.Rows[j].Cells[0].Value = (j * (NUD_Level.Value / (dgv.Rows.Count - 1))).ToString();
|
||||
dgv.Rows[j].Cells[0].Value = ((int)(j * (NUD_Level.Value / (dgv.Rows.Count - 1)))).ToString();
|
||||
}
|
||||
}
|
||||
CB_Species.SelectedIndex = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user