finish
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user