~alienagain/lost_coordinates

7fc2d63e81a62ff983bd408bbbd70cfd54b6334e — terceranexus6 1 year, 1 month ago 886c6de master
future me was me, in the end. Although I did left some stuff noted down in issues-md so I know what was going on. I tried to git add commit in one line by mistake so I'm leaving it for real now.
5 files changed, 20 insertions(+), 5 deletions(-)

M MYDATA/PAULA/BACKPACK
M MYDATA/PAULA/SAVING_CARTRIDGE_PAULA
M MYDATA/PAULA/chosen_maps
M game.sh
A issues.md
M MYDATA/PAULA/BACKPACK => MYDATA/PAULA/BACKPACK +1 -2
@@ 8,5 8,4 @@ Clothes
Camera

black device
radio
radio
radio device

M MYDATA/PAULA/SAVING_CARTRIDGE_PAULA => MYDATA/PAULA/SAVING_CARTRIDGE_PAULA +1 -1
@@ 1,1 1,1 @@
episode6
episode7

M MYDATA/PAULA/chosen_maps => MYDATA/PAULA/chosen_maps +1 -1
@@ 1,1 1,1 @@
MAP_A
MAP_B

M game.sh => game.sh +4 -1
@@ 659,6 659,7 @@ episode6(){
		change_place

		#debug_this "new coor is $COOR"
		COOR=$(cat chosen_maps)

		if [ "$COOR" == "MAP_A" ]; then
			SCENARY_A


@@ 759,6 760,8 @@ SCENARY_B(){
		fi
	done < BACKPACK

	debug_this "the radio is $have_the_radio"

		# if you do, you could have thought of using it in the past or not
	if [ "$have_the_radio" == "yes" ]; then 
			echo -e "$SPA_C But you might be able to do something, just in case."


@@ 1041,7 1044,7 @@ SCENARY_C(){
		#debug_this "radio is $TAKETHERADIO"

		if [ "$TAKETHERADIO" == "1" ]; then
			echo "radio" >> BACKPACK
			echo "radio device" >> BACKPACK
			echo -e "$SPA_C you take the radio and put it in your backback"
			continue_
			keep_going="yes"

A issues.md => issues.md +13 -0
@@ 0,0 1,13 @@
#ISSUES

##01 - the radio choices in SCENARY B are broken.

It shows both options in `if [ "$line3" == "MAP_A" ]; then`, this is because you are using an IF ELSE in a file that allow several inputs. So both conditions might happen. Rethink this mess.


##02 - the scenary selector always says at first choice "choose another"
I'm ot sure why, it should only show this when map_A already happened and you pick it.