pokemon*.sh: minor fixes and code review

This commit is contained in:
Christopher Roy Bratusek 2016-08-05 21:08:51 +02:00
parent 3ca3901fd2
commit 5c4ba5c207
6 changed files with 11 additions and 11 deletions

View File

@ -36,9 +36,9 @@ viola_nerf () {
enter either 'nerf' or press [Enter] to keep:
"
read choice
read -r choice
case choice in
case ${choice} in
[nN]erf ) HANS_EXTRA_PATH="${HANS_PATH}/Viola Nerf Files" ;;
* ) echo "invalid choice made, keeping first gym leader's team strength" ;;
esac
@ -63,14 +63,14 @@ Encounter type changes the wild Pokemon availability:
enter either 'legal', 'rebalanced' or 'insanity':
"
read choice
read -r choice
case ${choice} in
[lL]egal ) HANS_PATH="${RIIVOLUTION_DIR}/Legal version"
viola_nerf ;;
[rR]ebalanced ) HANS_PATH="${RIIVOLUTION_DIR}/Rebalanced version"
viola_nerf ;;
[iI]nsanity ) HANS_PATH="${RIIVOLUTION_DIR}/Insanity Mode"
[iI]nsanity ) HANS_PATH="${RIIVOLUTION_DIR}/Insanity Mode" ;;
* ) echo "invalid choice made, using 'Rebalanced version'."
HANS_PATH="${RIIVOLUTION_DIR}/Rebalanced version"
viola_nerf ;;

View File

@ -41,7 +41,7 @@ check_hans_files () {
enter either 'full' or 'lite':
"
read choice
read -r choice
case ${choice} in
[fF]ull ) HANS_PATH="${RIIVOLUTION_DIR}"/Full/romfs ;;

View File

@ -41,7 +41,7 @@ check_hans_files () {
enter either 'full' or 'lite':
"
read choice
read -r choice
case ${choice} in
[fF]ull ) HANS_PATH="${RIIVOLUTION_DIR}"/Full/romfs ;;

View File

@ -52,7 +52,7 @@ Encounter type changes the wild Pokemon availability:
enter either 'legit', 'leveled' or '679':
"
read choice
read -r choice
case ${choice} in
[lL]egit ) HANS_EXTRA_PATH="${RIIVOLUTION_DIR}/Encounter Type/Legit Build" ;;

View File

@ -25,7 +25,7 @@ edited, and the level curve expects use of the Experience Share, which means
that you level up very quickly. You should be hitting Level 100 by the time you
get to the Elite Four.
Source: https://projectpokemon.org/forums/showthread.php?46315
Source: https://projectpokemon.org/forums/showthread -r.php?46315
Base ROM: Pokemon Alpha Sapphire
Supported Versions: US, EU, JAP
************************************************"
@ -52,7 +52,7 @@ Encounter type changes the wild Pokemon availability:
enter either 'legit', 'leveled' or '679':
"
read choice
read -r choice
case ${choice} in
[lL]egit ) HANS_EXTRA_PATH="${RIIVOLUTION_DIR}/Encounter Type/Legit Build" ;;

View File

@ -36,7 +36,7 @@ viola_nerf () {
enter either 'nerf' or press [Enter] to keep:
"
read choice
read -r choice
case choice in
[nN]erf ) HANS_EXTRA_PATH="${HANS_PATH}/Viola Nerf Files" ;;
@ -63,7 +63,7 @@ Encounter type changes the wild Pokemon availability:
enter either 'legal', 'rebalanced' or 'insanity':
"
read choice
read -r choice
case ${choice} in
[lL]egal ) HANS_PATH="${RIIVOLUTION_DIR}/Legal version"