dotg

a bitreich fosdem adventure
git clone https://git.parazyd.org/dotg
Log | Files | Refs

Toilet2.sh (1395B)


      1 specific_toilet2() {
      2 	item="$1"
      3 
      4 	case "$item" in
      5 		Plate_of_Bolognese_Sauce|Used_condom)
      6 			_msg "You flush the $item down the toilet."
      7 			rm "$inventory/$item"
      8 			printf 1 > "$toilet2/toilet/Water"
      9 			;;
     10 
     11 		Smartphone)
     12 			_msg "You make a dick pic using the smartphone camera."
     13 			;;
     14 
     15 		Cheese)
     16 			# Space between punctuation marks intended.
     17 			if [ -f "$inventory/.isfrench" ]; then
     18 				_msg "You made it here with the smelly cheese !
     19 
     20 					The cheese tells you:
     21 						« Je t’aime ! »
     22 
     23 					But then you read the sign:
     24 
     25 						« Ces toilettes sont sous
     26 						surveillance vidéo et le sexe
     27 						fromagé est interdit. »
     28 
     29 					Maybe you should use toilet 1 for
     30 					this."
     31 			fi
     32 			;;
     33 		Black_dildo)
     34 			_msg "You stick the black dildo in the shower drain,
     35 				rendering it shut."
     36 			mv "$inventory/$item" "$toilet2/shower"
     37 			if [ -f "$inventory/.isfrench" ]; then
     38 				if [ -f "$toilet1/shower/Cheese" ] && \
     39 						[ -f "$hipsters/obese/.inkitchensink" -o \
     40 						"$kitchen/sink/Black_dildo" ]; then
     41 					_msg "You hear a strange noise coming from the NeXT machine."
     42 					rm -f "$inventory/.notyet"
     43 				fi
     44 			else
     45 				if [ -f "$kitchen/sink/Cheese" ]; then
     46 					if [ -f "$toilet1/shower/Black_dildo" -o \
     47 							"$hipsters/obese/.takingashit" ]; then
     48 						_msg "You hear a strange noise coming from the NeXT machine."
     49 						rm -f "$inventory/.notyet"
     50 					fi
     51 				fi
     52 			fi
     53 			;;
     54 	esac
     55 }