Skip to content

Commit

Permalink
Revert "Only allow a max of 9 held of each piece in custom games"
Browse files Browse the repository at this point in the history
This reverts commit 88addf0.
  • Loading branch information
TollyH committed Feb 23, 2023
1 parent f80a8e8 commit b605bbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CustomGame.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@ private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
private void GoteDrop_MouseUp(object sender, MouseButtonEventArgs e)
{
Type clickedType = (Type)((Grid)sender).Tag;
if (e.ChangedButton == MouseButton.Left && gotePieceDrops[clickedType] < 9)
if (e.ChangedButton == MouseButton.Left)
{
gotePieceDrops[clickedType]++;
}
else if (e.ChangedButton == MouseButton.Right && gotePieceDrops[clickedType] != 0)
else if (gotePieceDrops[clickedType] != 0)
{
gotePieceDrops[clickedType]--;
}
Expand All @@ -278,11 +278,11 @@ private void GoteDrop_MouseUp(object sender, MouseButtonEventArgs e)
private void SenteDrop_MouseUp(object sender, MouseButtonEventArgs e)
{
Type clickedType = (Type)((Grid)sender).Tag;
if (e.ChangedButton == MouseButton.Left && sentePieceDrops[clickedType] < 9)
if (e.ChangedButton == MouseButton.Left)
{
sentePieceDrops[clickedType]++;
}
else if (e.ChangedButton == MouseButton.Right && sentePieceDrops[clickedType] != 0)
else if (sentePieceDrops[clickedType] != 0)
{
sentePieceDrops[clickedType]--;
}
Expand Down

0 comments on commit b605bbe

Please sign in to comment.