mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-01 13:26:39 -05:00
Allow saving of maps with a total encounter rate of 0%.
This commit is contained in:
@@ -328,9 +328,9 @@ private void B_Save_Click(object sender, EventArgs e)
|
||||
int tot = 0;
|
||||
foreach (var nup in rate_spec) { tot += (int) nup.Value; }
|
||||
|
||||
if (tot != 100)
|
||||
if (tot != 100 && tot != 0)
|
||||
{
|
||||
WinFormsUtil.Error("Encounter rates must add up to 100%.");
|
||||
WinFormsUtil.Error("Encounter rates must add up to either 0% or 100%.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user