From 357748a12274062dc19d40435e31f92fb6a69e60 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Sat, 21 Jan 2023 00:49:01 +0100 Subject: [PATCH] fixed ending game not shown & added monster hit points value --- src/main/java/game/StartDarkSoulsGame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 2529465..b292674 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -157,6 +157,7 @@ public class StartDarkSoulsGame { } public void PlayerSetup() { playerHP = 15; + monsterHP = 20; hpLabelNumber.setText(""+ playerHP); weapon = "Knife"; weaponLabelName.setText(weapon); @@ -323,7 +324,7 @@ public class StartDarkSoulsGame { switch(position) { case "townGate": switch(yourChoice) { - case "c1": talkGuard(); break; + case "c1": if(AshuraRing == 1) ending(); else { talkGuard();} break; case "c2": attackGuard(); break; case "c3": crossRoad(); break; }