From dcef43ad88a1ad1a1a3964f6a452d9afbc8e2937 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 21 Mar 2024 05:32:39 +0100 Subject: [PATCH] wrote better pizza dialog --- src/actor.rs | 2 ++ src/defs.txt | 56 +++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 47 insertions(+), 11 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index 79d7b0a..b55581a 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -258,6 +258,7 @@ pub fn handle_send_messages( match branch.level.as_str() { "chat" => log.chat(branch.reply.clone(), branch.name.clone()), "info" => log.info(branch.reply.clone()), + "warn" => log.warning(branch.reply.clone()), _ => (), } } @@ -320,6 +321,7 @@ pub fn handle_conversations( match branch.level.as_str() { "chat" => log.chat(branch.reply.clone(), branch.name.clone()), "info" => log.info(branch.reply.clone()), + "warn" => log.warning(branch.reply.clone()), _ => (), } } diff --git a/src/defs.txt b/src/defs.txt index 4a3d377..c588f31 100644 --- a/src/defs.txt +++ b/src/defs.txt @@ -20,6 +20,51 @@ actor -3300 10 0 pizzeria chatid pizzeria alive yes pronoun it + chat pizzeria + name "Space Pizza™" + msg 2 INIT hi "Requesting permission to communicate..." + lvl info + msg 6 hi cool "Welcome to Space Pizza™, best pizza around the Main Ring!" + msg 6 cool order "Great to see a customer, we don't get many lately" + msg 10 order special "Would you like to order today's special?" + choice 3 special whatsthespecial "What's the special?" + msg 4 whatsthespecial pineapple "Suspicious Spacefunghi" + msg 4 pineapple smoothie "With free pineapple imiation" + msg 6 smoothie tube "Our pizza smoothies are freshly blended every day" + choice 3 tube wtftube "Wait... pizza smoothie?" + msg 6 wtftube anyway "Huh? Of course, smoothie! How else do you want to get that pizza down your spacesuit feeding tube?" + msg 6 anyway pass "An emulsion of deliciousness!" + msg 20 tube pass "Deliciousness for your spacesuit feeding tube!" + choice 3 pass yourloss "I think I'll pass..." + msg 3 yourloss end "Your loss, mate" + msg 3 pass prank "Hey? Are you still there?" + choice 3 special gottaeat "Wh... what's a pizzeria doing here?" + msg 3 gottaeat nowwannaorder "Hah, beautiful, right? I carved it out this asteroid myself!" + msg 20 nowwannaorder special "Now would you like today's special or not?" + choice 3 special ohno "My head hurts, my suit leaks, I think I'm dying..." + msg 20 ohno pressok "Seriously? Let me have a look. Just press the 'Grant Access' button please." + choice 3 pressok virus "[GRANT ACCESS TO SPACESUIT WIFI]" + msg 3 virus bitcoin "MALWARE DETECTED" + lvl warn + msg 6 bitcoin wtf "BITCOIN MINER DETECTED" + lvl warn + choice 5 wtf justchecking "Hey, what are you doing with me?" + msg 6 justchecking suitfucked "Just checking your systems, hang on tight" + msg 5 suitfucked wtfanyway "Yeah, suit's fucked, I'd look out for a repair shop" + msg 5 wtf wtfanyway "Yeah, suit's fucked, I'd look out for a repair shop" + msg 5 wtfanyway special "Anyway, wanna order today's special?" + choice 3 pressok deny "[DENY ACCESS TO SPACESUIT WIFI]" + msg 5 deny pressok2 "Oh come on, do you want my help or not?" + choice 3 pressok2 virus "[GRANT ACCESS TO SPACESUIT WIFI]" + choice 3 pressok2 deny2 "[DENY ACCESS TO SPACESUIT WIFI]" + choice 3 pressok2 deny2 "Fuck off!" + msg 2 deny2 end "Great, the first customer in ages, and they're brain damaged..." + msg 3 pressok2 prank "Hey? Are you still there?" + msg 3 pressok prank "Hey? Are you still there?" + msg 3 special prank "Hey? Are you still there?" + msg 4 prank end "This a prank?" + msg 0 end EXIT "Disconnected." + lvl info actor -50 0 0 suit name Icarus @@ -47,17 +92,6 @@ chat hi_icarus msg 0 end EXIT "Disconnected." lvl info -chat pizzeria - name "Space Pizza™" - msg 2 INIT hi "Requesting permission to communicate..." - lvl info - msg 5 hi order "Welcome to Space Pizza™, best pizza all across the Jovian rings!" - msg 10 order anyone "Would you like to order today's special Miracle Spacefungi? Freshly blended pizza smoothie ready for your space suit feeding tube!" - choice 3 anyone yourloss "Pizza... smoothie? I think I'll pass..." - msg 3 yourloss end "Your loss, mate" - msg 10 anyone end "Hello? Is anyone there? Is this a prank?" - msg 0 end EXIT "Disconnected." - lvl info chat error name ERROR