From 41866d9c5ff5efc21000b9e7b80fcffabf6e493c Mon Sep 17 00:00:00 2001 From: the Date: Tue, 6 Dec 2022 10:27:20 +0400 Subject: [PATCH] Fix2 --- FormMap.java | 4 ++-- FormShip.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FormMap.java b/FormMap.java index 88e232a..b2c39f7 100644 --- a/FormMap.java +++ b/FormMap.java @@ -33,7 +33,7 @@ public class FormMap extends JFrame { rnd.nextInt(100, 300), rnd.nextInt(1000, 2000), new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)), - rnd.nextInt(4, 6 + 1) + rnd.nextInt(1, 4) ); setData(ship); }); @@ -71,7 +71,7 @@ public class FormMap extends JFrame { rnd.nextInt(100, 300), rnd.nextInt(1000, 2000), new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)), - rnd.nextInt(4, 6 + 1), + rnd.nextInt(1, 4), new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)), rnd.nextBoolean(), rnd.nextBoolean() diff --git a/FormShip.java b/FormShip.java index 54dbc3e..9c340f9 100644 --- a/FormShip.java +++ b/FormShip.java @@ -31,7 +31,7 @@ public class FormShip extends JFrame { rnd.nextInt(0, 256), rnd.nextInt(0, 256), rnd.nextInt(0, 256)), - rnd.nextInt(4, 7) + rnd.nextInt(1, 4) ); _ship.SetPosition(10 + rnd.nextInt(90), 10 + rnd.nextInt(90), pictureBox.getWidth(), pictureBox.getHeight()); speedLabel.setText(String.format("Speed: %s", _ship.getShip().getSpeed())); @@ -71,7 +71,7 @@ public class FormShip extends JFrame { rnd.nextInt(0, 256), rnd.nextInt(0, 256), rnd.nextInt(0, 256)), - rnd.nextInt(4, 7), + rnd.nextInt(1, 4), new Color( rnd.nextInt(0, 256), rnd.nextInt(0, 256),