dotg

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

commit c1c79b38d2464f22e4ab369a825006584960209d
parent b025ca1b14d7e1c9cccbe12bd83ee52f179bafba
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 24 Feb 2018 03:05:04 +0100

More dialog options.

Diffstat:
Mact-i/Bedroom2.sh | 1+
Aact-i/Work_Desk.sh | 15+++++++++++++++
Mact-i/functions | 4++++
Mact-i/talk-20h.sh | 15++++++++++++++-
Mact-i/talk-hipster.sh | 4++--
Mact-i/usecases.csv | 4+++-
6 files changed, 39 insertions(+), 4 deletions(-)

diff --git a/act-i/Bedroom2.sh b/act-i/Bedroom2.sh @@ -14,5 +14,6 @@ specific_bedroom2() { else _msg "You lick the $item" fi + ;; esac } diff --git a/act-i/Work_Desk.sh b/act-i/Work_Desk.sh @@ -0,0 +1,15 @@ +specific_workdesk() { + item="$1" + + case "$item" in + Smashed_Macbook|Unlocked_Macbook) + if [ -f "$workdesk/Locked_computer" ]; then + _msg "You swap the locked computer with the $item." + mv "$workdesk/Locked_computer" "$inventory" + else + _msg "You place the $item on the work desk." + fi + mv "$inventory/$item" "$workdesk" + ;; + esac +} diff --git a/act-i/functions b/act-i/functions @@ -252,6 +252,10 @@ use_specific() { . Kitchen.sh specific_kitchen "$item" ;; + Work_Desk) + . Work_Desk.sh + specific_workdesk "$item" + ;; *) echo "Not implemented" ;; diff --git a/act-i/talk-20h.sh b/act-i/talk-20h.sh @@ -10,6 +10,19 @@ specific_talk_20h() { _msg "Zagreb is such a nice city." ;; + Dirt) + _msg "Ah, a souvenir of Brussels." + ;; + + Unlocked_Macbook) + _msg "Your friend takes the Macbook from you and deletes its contents." + rm -f "$inventory/$item" + ;; + + Smashed_Macbook) + _msg "Now that is a proper-looking Macbook!" + ;; + Cigarettes) _msg "I don't smoke, but I like to see all smokers dying slowly." ;; @@ -48,7 +61,7 @@ specific_talk_20h() { ;; Cheese) - _msg "This cheese smells and belongs into the kitchensink." + _msg "This cheese smells and belongs into the kitchen sink." ;; Beers) diff --git a/act-i/talk-hipster.sh b/act-i/talk-hipster.sh @@ -27,8 +27,8 @@ specific_talk_hipster() { You're shocked." ;; - *balloon) - _msg "You repeatedly hit the Macbook hipster on the head with the balloon. + Decorated_condom_balloon|Condom_balloon) + _msg "You repeatedly hit the Macbook hipster on the head with the $item. The hipster pops it and continues to work on his WebGL portfolio." rm -f "$inventory/$item" diff --git a/act-i/usecases.csv b/act-i/usecases.csv @@ -22,7 +22,9 @@ Mouse,talk-nerds Google_Ad_coupons,talk-balcony,talk-elves,talk-20h Cocaine,talk-20h,anywhere Cheese,kitchen-sink,talk-20h,anywhere -Unlocked_Macbook,talk-20h +Unlocked_Macbook,talk-20h,Work_Desk +Smashed_Macbook,talk-20h,Work_Desk +Dirt,talk-20h Also_sprach_Zarathustra,talk-20h The_Birth_of_Tragedy,talk-20h,talk-gentoo