remove TIMEOUT "choices", handle it with labels instead
This commit is contained in:
parent
9698dcdfee
commit
2b0de07427
|
@ -16,11 +16,13 @@ pub const TOKEN_IF: &str = "if";
|
||||||
pub const TOKEN_GOTO: &str = "goto";
|
pub const TOKEN_GOTO: &str = "goto";
|
||||||
pub const TOKEN_LABEL: &str = "label";
|
pub const TOKEN_LABEL: &str = "label";
|
||||||
pub const TOKEN_SCRIPT: &str = "script";
|
pub const TOKEN_SCRIPT: &str = "script";
|
||||||
//pub const TOKEN_TIMEOUT: &str = "TIMEOUT";
|
|
||||||
|
pub const NAME_FALLBACK: &str = "Unknown";
|
||||||
|
|
||||||
|
pub const CHOICE_TIMER: f64 = 40.0 * settings::DEFAULT_CHAT_SPEED as f64;
|
||||||
pub const LETTERS_PER_SECOND: f32 = 17.0;
|
pub const LETTERS_PER_SECOND: f32 = 17.0;
|
||||||
pub const TALKER_SPEED_FACTOR: f32 = settings::DEFAULT_CHAT_SPEED / LETTERS_PER_SECOND;
|
pub const TALKER_SPEED_FACTOR: f32 = settings::DEFAULT_CHAT_SPEED / LETTERS_PER_SECOND;
|
||||||
pub const CHAT_SPEED_MIN_LEN: f32 = 40.0;
|
pub const CHAT_SPEED_MIN_LEN: f32 = 40.0;
|
||||||
pub const NAME_FALLBACK: &str = "Unknown";
|
|
||||||
|
|
||||||
pub const NON_CHOICE_TOKENS: &[&str] = &[
|
pub const NON_CHOICE_TOKENS: &[&str] = &[
|
||||||
TOKEN_CHAT,
|
TOKEN_CHAT,
|
||||||
|
@ -268,6 +270,7 @@ pub fn handle_chat_events(
|
||||||
key: *key,
|
key: *key,
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
chat.timer = now + CHOICE_TIMER / settings.chat_speed as f64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,6 @@
|
||||||
- goto: thx
|
- goto: thx
|
||||||
- Whatever... I didn't ask for this.:
|
- Whatever... I didn't ask for this.:
|
||||||
- goto: didntask
|
- goto: didntask
|
||||||
- TIMEOUT:
|
|
||||||
- TIMEOUT:
|
|
||||||
|
|
||||||
|
|
||||||
- How are you feeling?
|
- How are you feeling?
|
||||||
|
@ -76,10 +74,12 @@
|
||||||
- What year is this?:
|
- What year is this?:
|
||||||
- Oh, is your Augmented Reality deactivated?
|
- Oh, is your Augmented Reality deactivated?
|
||||||
- Push the TAB button, your space suit's AR will show you the date and time.
|
- Push the TAB button, your space suit's AR will show you the date and time.
|
||||||
|
- goto: help
|
||||||
- Why am I here?:
|
- Why am I here?:
|
||||||
- That's a very philosophical question.
|
- That's a very philosophical question.
|
||||||
- I don't know.
|
- I don't know.
|
||||||
- It's probably related to the choices you made in your life so far.
|
- It's probably related to the choices you made in your life so far.
|
||||||
|
- goto: help
|
||||||
- What should I do?:
|
- What should I do?:
|
||||||
- Ah, that's the beauty of life.
|
- Ah, that's the beauty of life.
|
||||||
- You can just do whatever you want.
|
- You can just do whatever you want.
|
||||||
|
@ -92,6 +92,7 @@
|
||||||
- You're too kind!:
|
- You're too kind!:
|
||||||
- Ah, don't mention it!
|
- Ah, don't mention it!
|
||||||
- There's also a half-decent pizza restaurant over there, look for the neon sign.
|
- There's also a half-decent pizza restaurant over there, look for the neon sign.
|
||||||
|
- goto: help
|
||||||
- Do you have some money for me?:
|
- Do you have some money for me?:
|
||||||
- Huh? What is money?
|
- Huh? What is money?
|
||||||
- Currency? Flat round things that you can exchange for goods and services?:
|
- Currency? Flat round things that you can exchange for goods and services?:
|
||||||
|
@ -100,11 +101,11 @@
|
||||||
- But there's a pizza place right over there, look for the neon sign.
|
- But there's a pizza place right over there, look for the neon sign.
|
||||||
- goto: help
|
- goto: help
|
||||||
- Well, anyway, need anything else?
|
- Well, anyway, need anything else?
|
||||||
|
- goto: help
|
||||||
- I just want to be alone right now:
|
- I just want to be alone right now:
|
||||||
- Oh, sure. Ping me if you need anything. I'll go back to playing my VR game.
|
- Oh, sure. Ping me if you need anything. I'll go back to playing my VR game.
|
||||||
- goto: EXIT
|
- goto: EXIT
|
||||||
- TIMEOUT:
|
- Well, I hope you're ok.
|
||||||
- Well, I hope you're ok.
|
|
||||||
|
|
||||||
|
|
||||||
- label: chocolate
|
- label: chocolate
|
||||||
|
@ -112,8 +113,10 @@
|
||||||
- Oh yes! Please!:
|
- Oh yes! Please!:
|
||||||
- Here you go, my friend!
|
- Here you go, my friend!
|
||||||
- system: Received 1x ChuggaChug™ Instant Hot Chocolate
|
- system: Received 1x ChuggaChug™ Instant Hot Chocolate
|
||||||
- TIMEOUT:
|
- goto: pizzaplace
|
||||||
- I guess not. Well. I think I'll go back to playing my VR game. Ping me if you need anything.
|
- No, thank you.:
|
||||||
|
- Well. I think I'll go back to playing my VR game. Ping me if you need anything.
|
||||||
|
- label: pizzaplace
|
||||||
- Oh and make sure to check out the pizza place!
|
- Oh and make sure to check out the pizza place!
|
||||||
- Will do, bye!:
|
- Will do, bye!:
|
||||||
- system: Disconnected.
|
- system: Disconnected.
|
||||||
|
@ -133,13 +136,10 @@
|
||||||
- Our pizza smoothies are freshly blended every day
|
- Our pizza smoothies are freshly blended every day
|
||||||
- Wait... pizza smoothie?:
|
- Wait... pizza smoothie?:
|
||||||
- Huh? Of course, smoothie! How else do you want to get that pizza down your spacesuit feeding tube?
|
- Huh? Of course, smoothie! How else do you want to get that pizza down your spacesuit feeding tube?
|
||||||
- An emulsion of deliciousness!
|
- An emulsion of deliciousness!
|
||||||
- TIMEOUT:
|
|
||||||
- Deliciousness for your spacesuit feeding tube!
|
|
||||||
- I think I'll pass...:
|
- I think I'll pass...:
|
||||||
- Your loss, mate
|
- Your loss, mate
|
||||||
- TIMEOUT:
|
- goto: EXIT
|
||||||
- Hey? Are you still there?
|
|
||||||
- Wh... what's a pizzeria doing here?:
|
- Wh... what's a pizzeria doing here?:
|
||||||
- Hah, beautiful, right? I carved it out this asteroid myself!
|
- Hah, beautiful, right? I carved it out this asteroid myself!
|
||||||
- You know how much work it was to neutralize the rotation of the asteroid, so my valued customers don't bang against the walls while drinking my pizza?
|
- You know how much work it was to neutralize the rotation of the asteroid, so my valued customers don't bang against the walls while drinking my pizza?
|
||||||
|
@ -160,12 +160,8 @@
|
||||||
- "[GRANT ACCESS TO SPACESUIT WIFI]":
|
- "[GRANT ACCESS TO SPACESUIT WIFI]":
|
||||||
- goto hack
|
- goto hack
|
||||||
- "[DENY ACCESS TO SPACESUIT WIFI]":
|
- "[DENY ACCESS TO SPACESUIT WIFI]":
|
||||||
|
- Great, the first customer in ages, and they're brain damaged...
|
||||||
- Fuck off!:
|
- Fuck off!:
|
||||||
- TIMEOUT:
|
- Great, the first customer in ages, and they're brain damaged...
|
||||||
- goto: noreply
|
|
||||||
- Great, the first customer in ages, and they're brain damaged...
|
|
||||||
- goto: EXIT
|
- goto: EXIT
|
||||||
- TIMEOUT:
|
|
||||||
- TIMEOUT:
|
|
||||||
- label: noreply
|
|
||||||
- Hey, are you still there? Is this a prank?
|
- Hey, are you still there? Is this a prank?
|
||||||
|
|
|
@ -84,6 +84,4 @@
|
||||||
- Is there anything interesting to do around here?:
|
- Is there anything interesting to do around here?:
|
||||||
- goto: interesting
|
- goto: interesting
|
||||||
- No, thank you.:
|
- No, thank you.:
|
||||||
- TIMEOUT:
|
|
||||||
- Feel free to come back any time.
|
- Feel free to come back any time.
|
||||||
- system: Connection terminated.
|
|
||||||
|
|
Loading…
Reference in a new issue