dotg

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

Toilet1.sh (1530B)


      1 specific_toilet1() {
      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 			rm -f "$toilet1/toilet/Vomit"
      9 			printf 1 > "$toilet1/toilet/Water"
     10 			;;
     11 
     12 		Cheese)
     13 			# Space between punctuation marks intended.
     14 			if [ -f "$inventory/.isfrench" ]; then
     15 				_msg "You made it here with the smelly cheese !
     16 
     17 					The cheese tells you:
     18 						« Je t’aime ! »
     19 
     20 					You look deep into the eyes of the
     21 					cheese and realize it wants it too !
     22 
     23 					Now let us do it, you lovely cheese !
     24 
     25 					You have a French orgy with the
     26 					cheese. The whole toilet is now full
     27 					of cheese."
     28 				mv "$inventory/$item" "$toilet2/shower"
     29 
     30 				if [ -f "$kitchen/sink/Black_dildo" -o \
     31 						"$hipsters/obese/.inkitchensink" ] && \
     32 						[ -f "$toilet2/shower/Black_dildo" ]; then
     33 					_msg "You hear a strange noise coming from the NeXT machine."
     34 					rm -f "$inventory/.notyet"
     35 				fi
     36 			fi
     37 			;;
     38 
     39 		Black_dildo)
     40 			if [ -f "$inventory/.isfrench" ];
     41 			then
     42 				_msg "You read the sign:
     43 
     44 					« Cette toilette est réservé pour le
     45 					sexe de fromage ! »
     46 
     47 					and stop your intention."
     48 			else
     49 				_msg "You stick the black dildo in the shower drain,
     50 					rendering it shut."
     51 				mv "$inventory/$item" "$toilet1/shower"
     52 				if [ -f "$kitchen/sink/Cheese" ]; then
     53 					if [ -f "$toilet2/shower/Black_dildo" ]; then
     54 						_msg "You hear a strange noise coming from the NeXT machine."
     55 						rm -f "$inventory/.notyet"
     56 					fi
     57 				fi
     58 			fi
     59 			;;
     60 	esac
     61 }