Implement toilet 2 - dotg - Day Of The GrParazyd | |
git clone git://bitreich.org/dotg git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit e35ea95520687d36bd7c9268ae86e4f860cffb1b | |
parent 7d4f2447eab4a9424dd5423d015c5c6b5c97d4ef | |
Author: parazyd <[email protected]> | |
Date: Fri, 23 Feb 2018 21:19:31 +0100 | |
Implement toilet 2 | |
Diffstat: | |
A act-i/Toilet2.dcgi | 37 +++++++++++++++++++++++++++++… | |
M act-i/config | 1 + | |
M act-i/maps | 68 +++++++++++++++++++++++++++++… | |
A act-i/t2-shower.dcgi | 8 ++++++++ | |
A act-i/t2-toilet.dcgi | 13 +++++++++++++ | |
M act-i/take.dcgi | 6 ++++++ | |
M act-i/usecases.csv | 1 + | |
7 files changed, 134 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/act-i/Toilet2.dcgi b/act-i/Toilet2.dcgi | |
@@ -0,0 +1,37 @@ | |
+#!/bin/sh | |
+ | |
+. config | |
+echo Toilet2 > $savegame/room | |
+. functions | |
+. maps | |
+ | |
+gotkey="no" | |
+[ -f "$inventory/.elvesarehere" ] && gotkey="yes" | |
+ | |
+case "$gotkey" in | |
+ yes) map_toilet2_unlocked ;; | |
+ *) map_toilet2_locked ;; | |
+esac | |
+ | |
+_msg "## TOILET 2 (T2)" | |
+ | |
+case "$gotkey" in | |
+ yes) | |
+ _msg "You are in one of the toilets. | |
+ | |
+ You see a toilet, sink, and a shower." | |
+ | |
+ _msg "On the top of the toilet you see" | |
+ list_items_to take "$toilet2" | |
+ | |
+ _msg "[1|Inspect toilet|$path/t2-toilet.dcgi|server|port] | |
+ [1|Inspect shower|$path/t2-shower.dcgi|server|port]" | |
+ ;; | |
+ *) | |
+ _msg "The toilet is taken." | |
+ ;; | |
+esac | |
+ | |
+_msg "[1|Check inventory|$path/inventory.dcgi|server|port]" | |
+ | |
+navigation | |
diff --git a/act-i/config b/act-i/config | |
@@ -70,6 +70,7 @@ printf 1 > "$toilet1/shower/.notyet" | |
printf 1 > "$toilet2/toilet/Water" | |
printf 1 > "$toilet2/shower/Plastic_bag" | |
+printf 1 > "$toilet2/Cocaine" | |
printf 1 > "$nextbox/Terminal" | |
printf 1 > "$nextbox/Keyboard" | |
diff --git a/act-i/maps b/act-i/maps | |
@@ -481,3 +481,71 @@ map_talknerds() { | |
EOM | |
} | |
+ | |
+map_toilet2_locked() { | |
+ cat <<EOM | |
++-------------------------------------------------------------+ | |
+| | | | | |
+| | (R1) o | (R2) | | |
+|-----------------+....+------+-----------------+....+--------+ | |
+| YOU | | |
+| ☃ <---- | | |
+| +---+....+---+....+------+....+--------+ | |
+| |bk| | | |x| | |
+| |bk| | | |x| | |
+| (H)o |bk| | | |x| | |
+| | DJ | |bk| (T1) | (T2) | TTTT |x| | |
+| +- +----+ |bk| | | TTTTo o |x| | |
+| |o o | |bk| | oo | TTTT o |S| | |
+| |o TTT +----------+--------+ TTTT |x| | |
+| |o TTT | | oo TTTT o |F| | |
+| +- (HIP) o +| o TTTT |x| | |
+| |_o_☃_<o>| o NX| o TTTT (KIT) |-| | |
+| o +| TTTT | | |
+| o | | |
+| o | | |
+|bk| | | |
+|bk| | | |
+|bk| o TTT +-------+....+--------+ | |
+|bk| o TTT | | | |
+|bk| (COMP) | (BAL) o bbb | | |
+|bk| | o mmm | | |
+|bk| | | | |
++---------------+....+----------------------------------------+ | |
+ | |
+EOM | |
+} | |
+ | |
+map_toilet2_unlocked() { | |
+ cat <<EOM | |
++-------------------------------------------------------------+ | |
+| | | | | |
+| | (R1) | (R2) | | |
+|-----------------+....+------+-----------------+....+--------+ | |
+| o | | |
+| o | | |
+| +---+....+---+....+------+....+--------+ | |
+| |bk| | | |x| | |
+| o |bk| o | | |x| | |
+| (H) o |bk| | | |x| | |
+| | DJ | |bk| (T1) | (T2) | TTTT o |x| | |
+| +- +----+ |bk| | YOU | TTTT o |x| | |
+| |o o | |bk| | ---> ☃ | TTTT o |S| | |
+| |o TTT +----------+--------+ TTTT |x| | |
+| |o TTT | | oo TTTT o |F| | |
+| +- (HIP) o +| o TTTT o |x| | |
+| |_o_☃_<o>| o NX| o TTTT (KIT) |-| | |
+| o +| TTTT | | |
+| o | | |
+| o | | |
+|bk| | | |
+|bk| | | |
+|bk| o TTT +-------+....+--------+ | |
+|bk| o TTT | | | |
+|bk| (COMP) | (BAL) o bbb | | |
+|bk| | o mmm | | |
+|bk| | | | |
++---------------+....+----------------------------------------+ | |
+ | |
+EOM | |
+} | |
diff --git a/act-i/t2-shower.dcgi b/act-i/t2-shower.dcgi | |
@@ -0,0 +1,8 @@ | |
+#!/bin/sh | |
+ | |
+. config | |
+. functions | |
+ | |
+_msg "You take a closer look at the shower and you see:" | |
+list_items_to take "$toilet2/shower" | |
+echo "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" | |
diff --git a/act-i/t2-toilet.dcgi b/act-i/t2-toilet.dcgi | |
@@ -0,0 +1,13 @@ | |
+#!/bin/sh | |
+ | |
+. config | |
+. functions | |
+ | |
+_msg "You take a closer look at the toilet and you see:" | |
+if [ -f "$inventory/Plastic_bag" ]; then | |
+ list_items_to take "$toilet2/toilet" | |
+else | |
+ _msg "$(ls -1 $toilet2/toilet)" | |
+fi | |
+ | |
+echo "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" | |
diff --git a/act-i/take.dcgi b/act-i/take.dcgi | |
@@ -20,6 +20,12 @@ case "$(basename $2)" in | |
fi | |
_msg "The girls smile at you and let you take it." | |
;; | |
+ | |
+ Water) | |
+ _msg "You use the plastic bag and fill it up with water." | |
+ mv "$inventory/Plastic_bag" "$inventory/Plastic_bag_of_water" | |
+ return | |
+ ;; | |
esac | |
take_item "$2" | |
diff --git a/act-i/usecases.csv b/act-i/usecases.csv | |
@@ -23,6 +23,7 @@ Terminal,talk-nerds | |
Keyboard,talk-nerds | |
Mouse,talk-nerds | |
Google_Ad_coupons,talk-balcony,talk-elves | |
+Cocaine,anywhere | |
Also_sprach_Zarathustra,talk-20h | |
The_Birth_of_Tragedy,talk-20h,talk-gentoo |