Added README.md
This commit is contained in:
@@ -141,8 +141,7 @@ public class Main {
|
||||
case "1":
|
||||
battle(player, areaEnemy, scanner);
|
||||
if (!player.isAlive()) {
|
||||
System.out.println(RED + "\nYOU DIED." + RESET + " Your Soul Remains In The Grim Realm...");
|
||||
playing = false;
|
||||
break;
|
||||
}
|
||||
System.out.println("\nWhat Will You Do Now?");
|
||||
System.out.println("1. Continue Hunting The Enemies");
|
||||
@@ -268,7 +267,6 @@ public class Main {
|
||||
|
||||
healingFlask.use(player);
|
||||
break;
|
||||
|
||||
case "6":
|
||||
Item staminaPotion = player.getInventory().getMiscItemByName("Stamina");
|
||||
|
||||
@@ -322,6 +320,8 @@ public class Main {
|
||||
|
||||
if (!enemy.isAlive()) {
|
||||
handleVictory(player, enemy);
|
||||
} else if (!player.isAlive()) {
|
||||
System.out.println(RED + "\nYOU DIED." + RESET + " Your Soul Remains In The Grim Realm...");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -344,6 +344,7 @@ public class Main {
|
||||
}
|
||||
player.gainXP(enemy.getXpReward());
|
||||
} else {
|
||||
player.gainXP(enemy.getXpReward());
|
||||
System.out.println(PURPLE + "THE DRAGON DESCENDS!" + RESET);
|
||||
}
|
||||
}
|
||||
@@ -562,7 +563,7 @@ public class Main {
|
||||
System.out.println((i + 1) + ". " + a.getName() + " (Defense: " + a.getDefense() +" | Durability: " + a.getDurability() + ")" + equipped);
|
||||
}
|
||||
System.out.println("0. Back To Equipment Menu");
|
||||
System.out.println("\nEnter Number Of Armor To Equip And Repair If Needed:");
|
||||
System.out.println("\nEnter Number Of Armor To Equip And Repair (" + YELLOW + "20" + RESET + " Coins) If Needed:");
|
||||
try {
|
||||
int eqA = Integer.parseInt(scanner.nextLine());
|
||||
if (eqA == 0) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package org.project.entity.enemies;
|
||||
|
||||
import org.project.entity.Entity;
|
||||
import org.project.item.weapons.Weapon;
|
||||
|
||||
public class Dragon extends Enemy {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package org.project.entity.enemies;
|
||||
|
||||
import org.project.entity.Entity;
|
||||
import org.project.item.weapons.Weapon;
|
||||
import org.project.item.Item;
|
||||
|
||||
public class Goblin extends Enemy {
|
||||
|
||||
|
||||
@@ -4,10 +4,16 @@ import org.project.entity.Entity;
|
||||
import org.project.item.weapons.Weapon;
|
||||
|
||||
public class Skeleton extends Enemy {
|
||||
|
||||
private static final String RESET = "\033[0m";
|
||||
|
||||
private static final String PURPLE = "\033[0;35m";
|
||||
|
||||
|
||||
private boolean hasResurrected = false;
|
||||
|
||||
public Skeleton(Weapon weapon) {
|
||||
super("Skeleton", 160, 20, weapon, 1);
|
||||
super("Skeleton", 160, 20, weapon, 0.3);
|
||||
this.xpReward = 100;
|
||||
this.coinReward = 20;
|
||||
}
|
||||
@@ -19,7 +25,7 @@ public class Skeleton extends Enemy {
|
||||
if (!isAlive() && !hasResurrected) {
|
||||
fillHealth(getMaxHP() / 2);
|
||||
this.hasResurrected = true;
|
||||
System.out.println(name + " Falls To The Ground... But Then Resurrects From The Dead!");
|
||||
System.out.println(name + " Falls To The Ground... But Then" + PURPLE + " Resurrects From The Dead!" + RESET);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ public abstract class Player implements Entity {
|
||||
private static final String YELLOW = "\033[0;33m";
|
||||
private static final String PURPLE = "\033[0;35m";
|
||||
|
||||
|
||||
protected String name;
|
||||
protected int hp;
|
||||
protected int maxHP;
|
||||
|
||||
Reference in New Issue
Block a user