From 039440cd7e8aad8ce88f71ea243c5d98b7e101e8 Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 27 Oct 2024 18:03:06 +0100 Subject: [PATCH] generic chat ids (luna->tinker, mudley->pig), add mudley phone call --- src/chat.rs | 4 ++-- src/chats/phone.yaml | 42 ++++++++++++++++++++++++++++++++++++++++- src/chats/serenity.yaml | 12 ++++++++++-- src/data/defs.txt | 2 +- 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 29ac594..b0b804c 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -26,8 +26,8 @@ pub const CHATS: &[&str] = &[ include_str!("chats/thebe.yaml"), ]; -pub const CONTACTS: &[&str] = &["travel", "luna"]; -pub const CONTACTS_PRETTY: &[&str] = &["FASTravel", "Luna"]; +pub const CONTACTS: &[&str] = &["travel", "tinker", "pig"]; +pub const CONTACTS_PRETTY: &[&str] = &["FASTravel", "Luna", "Mudley"]; pub const CONTACTS_UNKNOWN: &str = "[Unknown]"; pub const TEXT_CONTINUE: &str = "Continue..."; diff --git a/src/chats/phone.yaml b/src/chats/phone.yaml index d12fda2..3150d5a 100644 --- a/src/chats/phone.yaml +++ b/src/chats/phone.yaml @@ -18,11 +18,16 @@ - sound: phone msg: Dialing... - goto: travel -- if: phone$luna +- if: phone$tinker Luna: - sound: phone msg: Dialing... - goto: luna +- if: phone$pig + Mudley: + - sound: phone + msg: Dialing... + - goto: pig - "[Cancel]": - goto: EXIT @@ -87,3 +92,38 @@ - "[Hang up]": [] - "[Hang up]": [] - goto: EXIT + +# --------------------------------------------------------- +# --------------------------------------------------------- +# --------------------------------------------------------- + +- label: pig +- script: changename Mudley +- Heyyyy!! This is Mudley, what's up? +- label: pig_node_main +- Where are you hanging out?: + - I'm at the Old Eearth Pizzeria. Come over if you wanna hang! + - goto: pig_node_main +- What's your story?: + - I'm a geologist. + - set: pig$geologist + - set: pig$earth + - I just loved the mud and dirt on Earth so much, I decided to study it. + - An endlessly fascinating subject. + - But the old rock, Earth, has been studied to the end and back. + - No scientific frontier in geology anymore. + - So I decided to venture into space, hoping to discover something novel. + - Came for the science, stayed for the floooooating around! + - I'm actually flying! Weeeeeeeee! This is so awesome! + - goto: pig_node_main +- if: pig$earth + What do you miss most out here in space?: + - The mud! + - The space suit is quite liberating, with the comms and the appendages. + - But I miss being nude, wallowing in the mud. + - set: pig$mud + - So much dust and rocks out here and I can't touch any of it. + - It's driving me nuts!!! Aaaah!! + - goto: pig_node_main +- "[Hang up]": [] +- goto: EXIT diff --git a/src/chats/serenity.yaml b/src/chats/serenity.yaml index 4ce4570..d1ad733 100644 --- a/src/chats/serenity.yaml +++ b/src/chats/serenity.yaml @@ -540,7 +540,7 @@ - set: grateful 0 - if $backupinstalled: - Of course, time traveler! Anything! - - script: registercontact luna + - script: registercontact tinker - goto: mainnode - if $believe: - Hm... I trust you, but... I want you to do me a favor first. @@ -786,7 +786,7 @@ --- -- chat: Mudley +- chat: pig - if $helmet: - Come on, cave monkey, I can't give you the snack if you don't take off your helmet. [press ESC] - goto: EXIT @@ -902,6 +902,14 @@ - But the helmet is blocking your mouth, right? - So first, open the space suit menu [press ESC] and take off your helmet. - goto: EXIT +- if: "~phone$pig" + Can I get your phone number?: + - if $annoyed: + - No. + - goto: entrypoint + - Sure, buddy! + - script: registercontact pig + - goto: entrypoint - Gotta go!: - Bye! - goto: EXIT diff --git a/src/data/defs.txt b/src/data/defs.txt index 58cff7f..a7c4b81 100644 --- a/src/data/defs.txt +++ b/src/data/defs.txt @@ -522,7 +522,7 @@ actor -3300 10 0 pizzeria relativeto pizzeriasign name Mudley id Mudley - chatid Mudley + chatid pig angularmomentum 0.4 0.2 0.1 wants maxrotation 0.2 wants matchvelocitywith pizzeria