|
@ -44,9 +44,11 @@ private boolean combat = false; |
|
|
break COMBAT_LOOP; |
|
|
break COMBAT_LOOP; |
|
|
case "runaway": |
|
|
case "runaway": |
|
|
if(runawaySucceeds(getRunawayChance())) { |
|
|
if(runawaySucceeds(getRunawayChance())) { |
|
|
|
|
|
System.out.println("You successfully ran away."); |
|
|
combat = false; |
|
|
combat = false; |
|
|
break COMBAT_LOOP; |
|
|
break COMBAT_LOOP; |
|
|
} |
|
|
} |
|
|
|
|
|
System.out.println("You failed to run away."); |
|
|
break; |
|
|
break; |
|
|
case "help": |
|
|
case "help": |
|
|
new HelpCommand().performCommand(scanner, true, "", engine); |
|
|
new HelpCommand().performCommand(scanner, true, "", engine); |
|
|