From 597f8f4e24837596936eef6e3fd8bf33d30c0cb5 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 3 Feb 2023 23:11:20 +0100 Subject: [PATCH] refactoring: change start pannel name & change weapon (gift of tears) hit points value --- src/main/java/game/StartDarkSoulsGame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index ffa3338..c81cd11 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -36,7 +36,7 @@ public class StartDarkSoulsGame { titleNamePanel = new JPanel(); titleNamePanel.setBounds(100,100,600, 150); titleNamePanel.setBackground(Color.black); - titelNameLabel = new JLabel("Dark souls 4 "); + titelNameLabel = new JLabel("Dark Souls 4 "); titelNameLabel.setForeground(Color.white); titelNameLabel.setFont(titelFont); StartButtonPanel = new JPanel (); @@ -247,7 +247,7 @@ public class StartDarkSoulsGame { playerDamage = new java.util.Random().nextInt(3); } else if (weapon.equals("Gift of Tears")) { - playerDamage = new java.util.Random().nextInt(8); + playerDamage = new java.util.Random().nextInt(7); } mainTextArea.setText("monster has been attacked: "+ playerDamage +" Damage "); monsterHP = monsterHP - playerDamage;