URI: 
       Add British mode. - dotg - Day Of The GrParazyd
  HTML git clone git://bitreich.org/dotg git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dotg
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
       ---
   DIR commit 323f87b66ebc4b0ec5dd420b3462b2f210f79c90
   DIR parent 36ec7f589355b9281bd2f0d6c9603e8632e22504
  HTML Author: Christoph Lohmann <20h@r-36.net>
       Date:   Thu,  1 Mar 2018 19:45:47 +0100
       
       Add British mode.
       
       Diffstat:
         M act-i/Balcony.dcgi                  |      25 +++++++++++++++++++++++--
         A act-i/Bench.dcgi                    |      95 ++++++++++++++++++++++++++++++
         A act-i/Bench.sh                      |      82 +++++++++++++++++++++++++++++++
         M act-i/config                        |       2 ++
         M act-i/functions                     |      65 +++++++++++++++++++++++++++++++
         M act-i/host.dcgi                     |       5 +++--
         M act-i/maps                          |      11 +++++++++++
         M act-i/usecases.csv                  |      28 ++++++++++++++--------------
       
       8 files changed, 295 insertions(+), 18 deletions(-)
       ---
   DIR diff --git a/act-i/Balcony.dcgi b/act-i/Balcony.dcgi
       @@ -5,6 +5,7 @@
        # person throw smelly cheese into a kitchen sink. So we made it possible to go
        # the French way. See history for how often this happened. We like the French.
        #
       +# The British mode was introduced because the British felt discriminated.
        . config
        echo Balcony > $savegame/room
        . functions
       @@ -12,8 +13,15 @@ echo Balcony > $savegame/room
        
        map_balcony
        
       -if [ -n "$2" ] && [ "$2" = "isfrench" ]; then
       -        echo 1 > "$inventory/.isfrench"
       +if [ -n "$2" ]; then
       +        case "$2" in
       +        isfrench)
       +                echo 1 > "$inventory/.isfrench"
       +                ;;
       +        isbritish)
       +                echo 1 > "$inventory/.isbritish"
       +                ;;
       +        esac
        fi
        
        cat <<EOM
       @@ -24,6 +32,18 @@ $(cat $balcony/Beers) beers, and $(cat $balcony/Chocolate_Milks) chocolate milks
        
        There are two people talking near you.
        
       +EOM
       +
       +if [ -f "$inventory/.isbritish" ];
       +then
       +        cat <<EOM
       +        Jean-Claude Juncker is on the balcony and realizes you are British. He
       +        calls the EU police and throws you out of the party.
       +
       +        [1|You end up on a bench in front of the party building.|$path/Bench.dcgi|server|port]
       +EOM
       +else
       +        cat <<EOM
        
        [1|Talk to people|$path/talk-balcony.dcgi|server|port]
        
       @@ -34,3 +54,4 @@ There are two people talking near you.
        EOM
        
        navigation
       +fi
   DIR diff --git a/act-i/Bench.dcgi b/act-i/Bench.dcgi
       @@ -0,0 +1,95 @@
       +#!/bin/bash
       +
       +. config
       +echo Bench > $savegame/room
       +. functions
       +. maps
       +
       +map_bench
       +
       +if [ ! -f "$inventory/.starttime" ]; then
       +        date +%s > "$inventory/.starttime"
       +fi
       +difftime=$(($(date +%s) - $(cat "$inventory/.starttime"))) 
       +
       +cat <<EOM
       +## THE BENCH
       +
       +EOM
       +# One hour waiting time.
       +if [ $difftime -gt 3600 ]; then
       +        cat <<EOM
       +        Your friend is coming down from the party, a bit drunk, but happy. You
       +        are happy too.
       +
       +        Both of you walk towards
       +        [h|the time machine|URL:ssh://time-machine@bitreich.org|server|port]
       +
       +        You have completed Act I in British mode.
       +
       +        Let us know on #bitreich-en (freenode) if you liked it!
       +
       +        Find the code at:
       +        [1|gopher://parazyd.org/1/git/dotg/log.gph|/git/dotg/log.gph|server|port]
       +
       +        [1|Go to Act II|/dotg/act-ii|server|port]"
       +EOM
       +else
       +        cat <<EOM
       +You are sitting on the bench, waiting for your friend to come out so both of
       +you can go home. From the top floor you hear that the party is still going on.
       +
       +Instead of being the party pooper as you use to be you decide to wait.
       +
       +EOM
       +
       +        case "$(($RANDOM % 7))" in
       +        0)
       +                cat <<EOM
       +                You see a cat walking by, look into her eyes. She turns around.
       +EOM
       +                ;;
       +        1)
       +                cat <<EOM
       +                A police car is driving by, asking you, if you saw some cat. You do
       +                not know French so you just say something in British English and the
       +                police turns around quickly.
       +EOM
       +                ;;
       +        2)
       +                cat <<EOM
       +                Your Smartphone is playing the notification tone of the "Waaaazzzuup?"
       +                messenger.
       +EOM
       +                printf 1 > "$inventory/.newmessage"
       +                ;;
       +        3)
       +                cat <<EOM
       +                Some drunk people walk by singing songs and smashing trash bins.
       +                You are scared.
       +EOM
       +                ;;
       +        4)
       +                cat <<EOM
       +                Some people walk by talking and greeting you.
       +EOM
       +                ;;
       +        5)
       +                cat <<EOM
       +                You hear moaning and some elve is hanging out of the window naked with
       +                someone behind her. You are missing out all the fun.
       +EOM
       +                ;;
       +        *)
       +                cat <<EOM
       +                Nothing happened.
       +EOM
       +                ;;
       +        esac
       +
       +        cat <<EOM
       +
       +        [1|Check inventory|$path/inventory.dcgi|server|port]
       +EOM
       +fi
       +
   DIR diff --git a/act-i/Bench.sh b/act-i/Bench.sh
       @@ -0,0 +1,82 @@
       +specific_bench() {
       +        item="$1"
       +
       +        case "$item" in
       +                Smartphone)
       +                        if [ -f "$inventory/.newmessage" ];
       +                        then
       +                                _msg "Your friend texted you: »Here is
       +                                something for you.« He attached a music."
       +
       +                                parapluutje
       +
       +                                _msg "A small package with a parachute is slowly
       +                                landing next to you. You open it."
       +
       +                                ritem="$(printf
       +                                "Beers\nChocolate_Milks\nBlack_dildo\nGoogle_Ad_coupons\nDeveloping_NodeJS\nAlso_sprach_Zarathustra\nThe_Birth_of_Tragedy\nSiddharta\nBaby_and_child_care\nThe_C_Programming_Language\nTo_Kill_a_Mockingbird\nSex_drugs_and_coca_puffs\nFight_club\nCheese\nCocaine\n"
       +                                | shuf | head -n 1)"
       +
       +                                _msg "Your friend sent you $ritem. You are
       +                                thankful in the cold."
       +
       +                                printf 1 > "$inventory/$ritem"
       +                        else
       +                                _msg "Noone called you. You are alone in this
       +                                world."
       +                        fi
       +                        ;;
       +
       +                Chocolate_Milks)
       +                        _msg "You drink a chocolate milk."
       +                        ;;
       +
       +                Black_dildo)
       +                        _msg "You wonder what the people at the party are
       +                        doing."
       +                        ;;
       +
       +                Google_Ad_coupons)
       +                        _msg "You go online and set up some Trump ads."
       +                        ;;
       +
       +                Developing_NodeJS)
       +                        _msg "You make a nice fire from this book. This is
       +                        heartwarming."
       +                        ;;
       +
       +                Also_sprach_Zarathustra)
       +                        _msg "By reading this book your heart gets warm."
       +                        ;;
       +
       +                The_Birth_of_Tragedy)
       +                        _msg "You feel the same as the book."
       +                        ;;
       +
       +                Siddharta)
       +                        _msg "Enlightenment is close or just your cold death."
       +                        ;;
       +
       +                Baby_and_child_care)
       +                        _msg "Interesting."
       +                        ;;
       +
       +                The_C_Programming_Language)
       +                        _msg "You write some patches for your friend's software
       +                        and commit them."
       +                        ;;
       +
       +                To_Kill_a_Mockingbird)
       +                        _msg "What a nice fire for your hands."
       +                        ;;
       +
       +                Sex_drugs_and_cocoa_puffs)
       +                        _msg "How about some cocaine?"
       +                        ;;
       +
       +                Fight_club)
       +                        _msg "He told me about it!"
       +                        ;;
       +
       +        esac
       +}
   DIR diff --git a/act-i/config b/act-i/config
       @@ -14,6 +14,7 @@ export balcony="$savegame/balcony"
        export workdesk="$savegame/workdesk"
        export nextbox="$savegame/nextbox"
        export inventory="$savegame/inventory"
       +export bench="$savegame/bench"
        
        [ -d "$savegame" ] && return
        
       @@ -38,6 +39,7 @@ mkdir -p \
                "$balcony" \
                "$workdesk" \
                "$nextbox" \
       +        "$bench" \
                "$inventory"
        
        printf 1  > "$inventory/Old_Thinkpad"
   DIR diff --git a/act-i/functions b/act-i/functions
       @@ -32,6 +32,67 @@ dropsauce() {
                }
        }
        
       +parapluutje() {
       +        cat <<EOM
       +
       +Oh wat een zomernacht
       +Een feestje op de terrasjes
       +Het regende plots heel zacht
       +Je vind de druppels op met je tong
       +En we dansten altijd maar dichter
       +M'n voeten werden steeds lichter
       +Toe neem me mee
       +
       +Onder je parapluutje
       +Onder je para-para-para-parapluutje
       +Schuilen voor een klein minuutje
       +Alles werd plots zo aah
       +Alles werd plots zo oe
       +Alles werd plots zo aah
       +Onder je paraplu
       +Para-para-parapluutje
       +Para-para-paraplu
       +Para-para-parapluutje
       +
       +Oh wat een zomernacht
       +Een kus om bij weg te dromen
       +Niemand die ons daar zag
       +We schuilden stilletjes en dichtbij
       +En plots braken de wolken open
       +Maar jij bent niet weggelopen
       +Toe neem me mee
       +
       +Onder je parapluutje
       +Onder je para-para-para-parapluutje
       +Schuilen voor een klein minuutje
       +Alles werd plots zo aah
       +Alles werd plots zo oe
       +Alles werd plots zo aah
       +Onder je paraplu
       +Para-para-parapluutje
       +Para-para-paraplu
       +Para-para-parapluutje
       +(2x)
       +
       +En we dansten altijd maar dichter
       +M'n voeten werden steeds lichter
       +Toe neem me mee
       +
       +Onder je parapluutje
       +Onder je para-para-para-parapluutje
       +Schuilen voor een klein minuutje
       +Alles werd plots zo aah
       +Alles werd plots zo oe
       +Alles werd plots zo aah
       +Onder je paraplu
       +Para-para-parapluutje
       +Para-para-paraplu
       +Para-para-parapluutje
       +(2x)
       +
       +EOM
       +}
       +
        takebeer() {
                current="$(cat $savegame/room)"
        
       @@ -240,6 +301,10 @@ use_specific() {
                                . Bedroom2.sh
                                specific_bedroom2 "$item"
                                ;;
       +                Bench)
       +                        . Bench.sh
       +                        specific_bench "$item"
       +                        ;;
                        Toilet1)
                                . Toilet1.sh
                                specific_toilet1 "$item"
   DIR diff --git a/act-i/host.dcgi b/act-i/host.dcgi
       @@ -24,11 +24,12 @@ You oversee the room and see some free spots on the couch in
        front of you. You look at your friend and tell him to go grab
        tthe seats, and you'll be there with the beers.
        
       -"May I ask you if you are French?"
       +"May I ask where you are from?"
        
        "Okay! I see it in your face." - He says, and leaves for the couch (HIP)
        
        You look around again, and
       -[1|leave towards the balcony the French way.|$path/Balcony.dcgi?isfrench|server|port]
        [1|leave towards the balcony.|$path/Balcony.dcgi|server|port]
       +[1|leave towards the balcony the French way.|$path/Balcony.dcgi?isfrench|server|port]
       +[1|leave towards the balcony the British way.|$path/Balcony.dcgi?isbritish|server|port]
        EOM
   DIR diff --git a/act-i/maps b/act-i/maps
       @@ -651,3 +651,14 @@ map_talkhost() {
        
        EOM
        }
       +
       +map_bench() {
       +        cat <<EOM
       +
       +
       +               |___☃_| <----
       +        ----------------------------
       +               (PARTY)
       +
       +EOM
       +}
   DIR diff --git a/act-i/usecases.csv b/act-i/usecases.csv
       @@ -1,11 +1,11 @@
        Old_Thinkpad,Hipster_Area,talk-gentoo,talk-host,talk-20h
        Plastic_bottle_of_rakia,talk-20h,anywhere
        Cigarettes,talk-20h,anywhere
       -Smartphone,Kitchen,Bedroom1,talk-20h,Toilet2,talk-host
       -Plate_of_Bolognese_Sauce,talk-20h,Kitchen,Hipster_Area,Toilet1,Toilet2,talk-gentoo
       +Smartphone,Kitchen,Bedroom1,talk-20h,Toilet2,Bench,talk-host
       +Plate_of_Bolognese_Sauce,talk-20h,Kitchen,Hipster_Area,Bench,Toilet1,Toilet2,talk-gentoo
        Beers,talk-girls,talk-nerds,talk-20h,talk-gentoo,anywhere
       -Chocolate_Milks,talk-gentoo,talk-nerds,Kitchen,talk-20h
       -Black_dildo,Toilet1,Toilet2,Balcony,Bedroom1,Bedroom2,talk-girls,talk-20h,talk-hipster
       +Chocolate_Milks,talk-gentoo,talk-nerds,Kitchen,Bench,talk-20h
       +Black_dildo,Toilet1,Toilet2,Balcony,Bedroom1,Bedroom2,Bench,talk-girls,talk-20h,talk-hipster
        Red_Lighter,talk-20h
        White_Lighter,talk-20h
        Locked_computer,talk-20h
       @@ -19,7 +19,7 @@ Rolling_tobacco,talk-20h,anywhere
        Terminal,talk-nerds
        Keyboard,talk-nerds
        Mouse,talk-nerds
       -Google_Ad_coupons,talk-balcony,talk-elves,talk-20h
       +Google_Ad_coupons,talk-balcony,Bench,talk-elves,talk-20h
        Cocaine,talk-20h,anywhere
        Cheese,kitchen-sink,talk-20h,Toilet1,Toilet2,anywhere
        Unlocked_Macbook,talk-20h,Work_Desk
       @@ -27,12 +27,12 @@ Smashed_Macbook,talk-20h,Work_Desk
        Dirt,talk-20h
        Plastic_bag_of_Water,talk-20h
        
       -Also_sprach_Zarathustra,talk-20h
       -The_Birth_of_Tragedy,talk-20h,talk-gentoo
       -Siddhartha,talk-20h
       -Baby_and_child_care,talk-20h,talk-girls
       -The_C_Programming_Language,talk-20h,talk-gentoo,talk-nerds,talk-hipster
       -Developing_NodeJS,talk-20h,talk-gentoo,talk-nerds
       -To_Kill_a_Mockingbird,talk-hipster,talk-girls,talk-20h
       -Sex_drugs_and_cocoa_puffs,talk-20h,talk-nerds
       -Fight_Club,talk-hipster,talk-20h
       +Also_sprach_Zarathustra,Bench,talk-20h
       +The_Birth_of_Tragedy,Bench,talk-20h,talk-gentoo
       +Siddhartha,Bench,talk-20h
       +Baby_and_child_care,talk-20h,Bench,talk-girls
       +The_C_Programming_Language,talk-20h,Bench,talk-gentoo,talk-nerds,talk-hipster
       +Developing_NodeJS,talk-20h,Bench,talk-gentoo,talk-nerds
       +To_Kill_a_Mockingbird,talk-hipster,Bench,talk-girls,talk-20h
       +Sex_drugs_and_cocoa_puffs,talk-20h,Bench,talk-nerds
       +Fight_Club,talk-hipster,Bench,talk-20h