dotg

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

commit 6abf58b066bb15234d216814faaf471eed3745f2
parent bdc493a6a81c3663cf3b11f249b818d68f72771f
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 24 Feb 2018 00:00:10 +0100

Finalize kitchen. It's time to hunt for bugs.

Diffstat:
Mact-i/Balcony.sh | 10++++++++++
Aact-i/Bedroom1.sh | 9+++++++++
Mact-i/Bedroom2.sh | 7+++++++
Mact-i/Kitchen.dcgi | 4++--
Aact-i/Kitchen.sh | 25+++++++++++++++++++++++++
Mact-i/config | 2+-
Mact-i/functions | 16++++++++++++++++
Aact-i/kit-cups.dcgi | 9+++++++++
Aact-i/kit-table.dcgi | 9+++++++++
Aact-i/kitchen-fridge.dcgi | 25+++++++++++++++++++++++++
Aact-i/kitchen-fridge.sh | 11+++++++++++
Mact-i/talk-20h.sh | 5++++-
Mact-i/talk-balcony.sh | 4+++-
Mact-i/talk-elves.sh | 2++
Mact-i/usecases.csv | 5+----
15 files changed, 134 insertions(+), 9 deletions(-)

diff --git a/act-i/Balcony.sh b/act-i/Balcony.sh @@ -8,5 +8,15 @@ specific_balcony() { The balloon flies away." rm -f "$inventory/$item" ;; + Plastic_bag) + _msg "The wind makes your $item fly away... + + You're sad." + rm -f "$inventory/$item" + ;; + Black_dildo) + _msg "You smash a beer bottle with the $item" + takebeer Beers; dropitem Beers + ;; esac } diff --git a/act-i/Bedroom1.sh b/act-i/Bedroom1.sh @@ -0,0 +1,9 @@ +specific_bedroom1() { + item="$1" + + case "$item" in + Smartphone) + _msg "You take a dick pic with your smartphone." + ;; + esac +} diff --git a/act-i/Bedroom2.sh b/act-i/Bedroom2.sh @@ -7,5 +7,12 @@ specific_bedroom2() { rm "$inventory/$item" rm "$bedroom2/.notyet" ;; + Black_dildo) + if [ -f "$bedroom2/Unlocked_Macbook" ]; then + _msg "You smash the Macbook with the dildo." + mv "$bedroom2/Unlocked_Macbook" "$bedroom2/Smashed_Macbook" + else + _msg "You lick the $item" + fi esac } diff --git a/act-i/Kitchen.dcgi b/act-i/Kitchen.dcgi @@ -36,8 +36,8 @@ cat <<EOM [1|Inspect the table|$path/kit-table.dcgi|server|port] [1|Inspect the cupboards|$path/kit-cups.dcgi|server|port] -[1|Inspect the sink|$path/kit-sink.dcgi|server|port] -[1|Inspect the fridge|$path/kit-fridge.dcgi|server|port] +[1|Inspect the sink|$path/kitchen-sink.dcgi|server|port] +[1|Inspect the fridge|$path/kitchen-fridge.dcgi|server|port] [1|Check inventory|$path/inventory.dcgi|server|port] EOM diff --git a/act-i/Kitchen.sh b/act-i/Kitchen.sh @@ -0,0 +1,25 @@ +specific_kitchen() { + item="$1" + + case "$item" in + Smartphone) + _msg "You take a selfie with some hipsters." + ;; + + Plate_of_Bolognese_Sauce) + _msg "You eat the $item" + rm -f "$inventory/$item" + ;; + + Chocolate_Milks) + _msg "You spill a bottle of chocolate milk in the sink." + dropitem "$item" + ;; + + Condom_balloon) + _msg "The Christians are shocked that you're using contraception" + _msg "They break your balloon." + rm -f "$inventory/$item" + ;; + esac +} diff --git a/act-i/config b/act-i/config @@ -97,6 +97,7 @@ printf 1 > "$kitchen/fridge/Old_yoghurt" printf 8 > "$kitchen/fridge/Beers" printf 8 > "$kitchen/fridge/Chocolate_Milks" printf 1 > "$kitchen/fridge/Plastic_bag" +printf 1 > "$kitchen/fridge/.notyet" printf 1 > "$kitchen/table/Empty_beer_bottles" printf 1 > "$kitchen/table/Rolling_tobacco" printf 1 > "$kitchen/table/Empty_Glasses" @@ -104,4 +105,3 @@ printf 1 > "$kitchen/cupboard/Plates" printf 1 > "$kitchen/cupboard/Empty_Glasses" printf 1 > "$kitchen/sink/Dirt" printf 1 > "$kitchen/sink/.notyet" -printf 1 > "$kitchen/.notyet-fridge" diff --git a/act-i/functions b/act-i/functions @@ -149,6 +149,10 @@ use_generic() { echo "You smoke a cigarette." ;; + Rolling_tobacco) + echo "You roll and smoke a cigarette." + ;; + Beers) dropitem "$item" echo "You drink a beer." @@ -215,6 +219,10 @@ use_specific() { kitchen-sink) . kitchen-sink.sh specific_talk_kitchensink "$item" + ;; + kitchen-fridge) + . kitchen-fridge.sh "$item" + ;; Hipster_Area) . Hipster_Area.sh specific_talk_hipsterarea "$item" @@ -223,6 +231,10 @@ use_specific() { . Balcony.sh specific_balcony "$item" ;; + Bedroom1) + . Bedroom1.sh + specific_bedroom1 "$item" + ;; Bedroom2) . Bedroom2.sh specific_bedroom2 "$item" @@ -235,6 +247,10 @@ use_specific() { . Toilet2.sh specific_toilet2 "$item" ;; + Kitchen) + . Kitchen.sh + specific_kitchen "$item" + ;; *) echo "Not implemented" ;; diff --git a/act-i/kit-cups.dcgi b/act-i/kit-cups.dcgi @@ -0,0 +1,9 @@ +#!/bin/sh + +. config +. functions + +_msg "You take a closer look at the cupboards and you see:" +list_items_to take "$kitchen/cupboard" + +_msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" diff --git a/act-i/kit-table.dcgi b/act-i/kit-table.dcgi @@ -0,0 +1,9 @@ +#!/bin/sh + +. config +. functions + +_msg "You take a closer look at the table and you see:" +list_items_to take "$kitchen/table" + +_msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]" diff --git a/act-i/kitchen-fridge.dcgi b/act-i/kitchen-fridge.dcgi @@ -0,0 +1,25 @@ +#!/bin/sh + +. config +echo kitchen-fridge > $savegame/room +. maps +. functions + +map_kitchen + +_msg "## HIPSTER AREA (HIP)" + +if [ -f "$kitchen/fridge/.notyet" ]; then + _msg "You run into some enthusiastic Christians. + They do not let you look at or open the fridge." +else + _msg "You're at the fridge. You see:" + list_items_to take "$kitchen/fridge" +fi + +cat <<EOM + +[1|Check inventory|$path/inventory.dcgi|server|port] + +[1|Exit|$path/Kitchen.dcgi|server|port] +EOM diff --git a/act-i/kitchen-fridge.sh b/act-i/kitchen-fridge.sh @@ -0,0 +1,11 @@ +specific_talk_kitchenfridge() { + item="$1" + case "$item" in + Decorated_condom_balloon) + _msg "You show the Satan-marked balloon to the Christians." + _msg "They get scared and run away." + rm -f "$kitchen/fridge/.notyet" + ;; + esac +} + diff --git a/act-i/talk-20h.sh b/act-i/talk-20h.sh @@ -59,7 +59,8 @@ specific_talk_20h() { Also_sprach_Zarathustra) _msg "God dies. - Your friend takes the book and starts babbling about the meaning of life." + Your friend takes the book and starts babbling about the meaning of life. + Also, Satan." dropsauce 20h mv "$inventory/$item" "$hipsters/20h" printf 1 > "$hipsters/20h/.meaningoflife" @@ -77,6 +78,8 @@ specific_talk_20h() { Siddhartha) _msg '"Religions suck." - He says. + Satan is the only answer. + You nod.' ;; diff --git a/act-i/talk-balcony.sh b/act-i/talk-balcony.sh @@ -6,7 +6,9 @@ specific_talk_balcony() { _msg '"A-a-are t-th-those Google Ad coupons?" - One of the bearded guys stutters. - The hipsters are speechless.' + "Santa once brought them to me for Christmas." + + The hipsters are continue being hip.' ;; esac } diff --git a/act-i/talk-elves.sh b/act-i/talk-elves.sh @@ -17,6 +17,8 @@ The party host jumps on the table and starts pissing on everyone. A dog comes into the room and starts fucking one of the girls. +The Christians get naked and masturbase furiously. + Your friend follows the Code of Conduct precisely. The Macbook hipster bends over the sink and gets fucked by the fat spaniard. diff --git a/act-i/usecases.csv b/act-i/usecases.csv @@ -3,8 +3,6 @@ Plastic_bottle_of_rakia,anywhere Cigarettes,anywhere Smartphone,Kitchen,Bedroom1,talk-20h,Toilet2,talk-host Plate_of_Bolognese_Sauce,Kitchen,Hipster_Area,Toilet1,Toilet2,talk-gentoo -Empty_Beer_Bottles,Balcony,Kitchen -Empty_Glasses,Kitchen Beers,talk-girls,talk-nerds,talk-20h,talk-gentoo,anywhere Chocolate_Milks,talk-gentoo,talk-nerds,Kitchen,talk-20h Black_dildo,Toilet1,Balcony,Bedroom1,Bedroom2,talk-girls,talk-20h,talk-hipster @@ -14,11 +12,10 @@ Locked_computer,talk-20h Keychain_with_a_key,Bedroom2,anywhere Used_condom,Toilet1,Toilet2,talk-20h Condom_balloon,talk-20h,talk-hipster,talk-gentoo,talk-nerds,Kitchen,Balcony -Decorated_condom_balloon,Kitchen,talk-girls +Decorated_condom_balloon,kitchen-fridge,talk-girls Plastic_bag,Balcony Old_yoghurt,talk-gentoo Rolling_tobacco,anywhere -Empty_Glasses,Kitchen Terminal,talk-nerds Keyboard,talk-nerds Mouse,talk-nerds