dotg

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

Toilet1.dcgi (1043B)


      1 #!/bin/sh
      2 
      3 . config
      4 echo Toilet1 > $savegame/room
      5 . functions
      6 . maps
      7 
      8 map_toilet1
      9 
     10 _msg "## TOILET 1 (T1)"
     11 
     12 # This would block the game, if it ever came true. So be sure.
     13 if [ -f "$inventory/.isfrench" -a -f "$hipsters/obese/.takingashit" ]; then
     14 	rm -f "$hipsters/obese/.takingashit"
     15 fi
     16 
     17 if [ -f "$hipsters/obese/.takingashit" ]; then
     18 	_msg "The toilet is blocked by the spaniard taking a shit."
     19 	if [ -f "$toilet1/shower/Black_dildo" ]; then
     20 		_msg "You hear the spaniard shouting: 'Who put the dildo in
     21 			here? Arrrrgh.'"
     22 	fi
     23 else
     24 	if ! [ -f "$inventory/.sawratintoilet1" ]; then
     25 		_msg "You see a rat disappear into the shower drain!"
     26 		printf 1 > "$inventory/.sawratintoilet1"
     27 	fi
     28 
     29 	if [ -f "$inventory/.sawratintoilet1" ]; then
     30 		_msg "You have to catch this rat you saw."
     31 	fi
     32 
     33 cat <<EOM
     34 You are in one of the toilets.
     35 
     36 You see a toilet, sink, and a shower.
     37 
     38 [1|Inspect toilet|$path/t1-toilet.dcgi|server|port]
     39 [1|Inspect shower|$path/t1-shower.dcgi|server|port]
     40 
     41 [1|Check inventory|$path/inventory.dcgi|server|port]
     42 EOM
     43 fi
     44 
     45 navigation