Okay. I added the code to the program.
if (enemyHP < 1){
System.out.println("---------------------------------------------------");
System.out.println(" # " + enemy + " was defeated! # ");
System.out.println(" # ");
System.out.println(" # You have" + hp + " HP left.");
Worked for me.
Somehow it skipped (I don't understand what this do)
if (rand.nextInt(100) > hpDrop ){
mxHPotions++;
System.out.println(" # The " + enemy + " has dropped a health potion! #");
System.out.println(" # You have" + mxHPotions + " potion(s)! #");
System.out.println("---------------------------------------------------");
int input1 = in.nextInt();
System.out.println("What now?");
System.out.println("1. Continue this maze of death untill you die...");
System.out.println("2. Realize that you have better things to do and quit!");
switch (input1){
case 1: System.out.println("So you choose death, eh... good luck on massacre of mystical creatures."); break;
case 2: System.out.println("So you choose life, eh... good luck on actual things you have to do."); break;
default:
System.out.println("---------------------------------------------------");
System.out.println("Invalid Command");
System.out.println("---------------------------------------------------");
break;
Also
case 2:
if(mxHPotions > 0)
{
hp += mxHPotions;
mxHPotions-- ;
System.out.println("---------------------------------------------------");
System.out.println("\t> You drank the potion!" + hpHealAmount + " gained!");
System.out.println("\t> You have " + hp + " HP.");
System.out.println("\t> You have " + mxHPotions + " Heath Potions left!");
System.out.println("---------------------------------------------------");
}else{
System.out.println("\t> You ran out, idiot!");
break;
}
break;
Didn't give 50 health point to Hp just few