+ (fix): fixed major bugs :
1. Skeleton now resurrects 2. Armor doesn't heal the player + (buff) buffed players
This commit is contained in:
@@ -104,7 +104,7 @@ public class Main {
|
||||
|
||||
|
||||
while (gameRunning && !player.isDead()){
|
||||
int choice = miniMenu(locations.get(randNum1),player);
|
||||
int choice = miniMenu(currentLocation,player);
|
||||
|
||||
switch (choice){
|
||||
case 1:
|
||||
@@ -159,7 +159,7 @@ public class Main {
|
||||
System.out.println(BLUE + " 1." + RESET + " Stay at " + loc.getName() + " and fight with " + loc.getEnemy().getName());
|
||||
System.out.println(BLUE + " 2." + RESET + " Move to another place");
|
||||
if (castleUnLocked){
|
||||
System.out.println(BLUE + " 3." + RESET + PURPLE + " Go to castle and fight with the dragon" + RESET);
|
||||
System.out.println(BLUE + " 3." + PURPLE + " Go to castle and fight with the dragon" + RESET);
|
||||
}
|
||||
else {
|
||||
System.out.println(" \uD83D\uDD12" + LIGHT_GRAY + "3. Go to castle and fight with the dragon" + RESET);
|
||||
@@ -267,7 +267,6 @@ public class Main {
|
||||
} else {
|
||||
System.out.println(RED + "Not enough MP!, light attacking." + RESET);
|
||||
player.lightAttack(enemy);
|
||||
System.out.println(RED + "Enemy HP : " + RESET + enemy.getHp());
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
@@ -291,6 +290,7 @@ public class Main {
|
||||
|
||||
System.out.println(RED + "HP : " + RESET + player.getHp() + "/" + player.getMaxHP() +
|
||||
GREEN + " | MP: " + RESET + player.getMp() + "/" + player.getMaxMP());
|
||||
System.out.println(RED + "Enemy's HP : " + RESET + enemy.getHp());
|
||||
}
|
||||
|
||||
private static void enemyTurn(Player player,Enemy enemy) {
|
||||
|
||||
Reference in New Issue
Block a user