This commit is contained in:
2026-05-14 15:22:32 +03:30
parent 526f07f2c7
commit d77fc1f3f3
19 changed files with 44 additions and 28 deletions
@@ -295,15 +295,15 @@ public class Main {
// for win senario
if(!enemy.isalive()){
System.out.println("you WIN");
int n = (int) (Math.random()*2); // 50% present enemy have key
if(enemy instanceof Dragon){
System.out.println(YELLOW + "Congratulation \n + you are the kingdom of Gogorio" + RESET);
System.out.println(YELLOW + "Congratulation \n You are the kingdom of Gogorio" +
" 1000 Hp | 1000 Mp" + RESET);
((Player) player).setKing(); // king senario;
}
int n = (int) (Math.random()*2); // 50% present enemy have key
if(n== 0){
else if(n== 0){
if(enemy instanceof Goblin){
if(keys.get(0) == true){
System.out.println("You have got this key befor");