1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
.pragma library
// What she says, in English, grouped by the reaction that says it.
// Companion.qml picks one at random per reaction and keeps to one line in
// 30 s, except for clicks and the self-destruct (Mood.canSpeak).
var lines = {
shown: ["Glory to mankind.", "2B, reporting.", "...Back on duty."],
bored: ["...Operator, I'm bored.", "Nothing to report.", "Awaiting orders."],
wake: ["I'm awake.", "Systems online."],
mock: ["Typo again?", "Delete, delete, delete.", "Were you aiming for that key?"],
shoved: ["Hey.", "Rude.", "I was standing here."],
ready: ["Answer's ready.", "Your reply came in."],
click: ["...Yes?", "Can I help you?"],
blush: ["S-stop that.", "...Operator."],
wallpaper: ["...!", "W-what is this?", "I wasn't staring."],
dodge: ["...Fine.", "I'll move."],
destruct: ["Self-destruct sequence initiated."],
aftermath: ["...That was unpleasant."],
// The focused window's class, lowercased, as "app:<class>". A class
// with no entry says nothing.
"app:firefox": ["Researching again?", "Don't open too many tabs.", "The Bunker's network is faster."],
"app:kitty": ["A terminal. Serious work.", "Careful with that rm.", "I'll watch your commands."],
"app:discord": ["Talking to the Resistance?", "Don't tell them where we are."],
"app:signal": ["Encrypted. Good."],
"app:steam": ["Training simulation?", "Don't play all night."],
"app:gimp": ["Making art?"],
"app:com.obsproject.studio": ["Are we recording?", "I'll stay out of frame."],
"app:md.obsidian.obsidian": ["Writing a report?", "Taking notes. Good habit."],
"app:sublime_text": ["Writing code?", "Mind the typos."],
"app:qtmaildir": ["Any orders from Command?", "Mail. Anything urgent?"],
"app:virt-manager": ["More machines?", "Androids running androids."],
"app:audacious": ["Music. I like this."],
"app:llamachat": ["Talking to Pod?"],
"app:qtpass": ["I'm not looking."],
};
// The game's opening, one sentence per bubble.
var monologue = [
"Everything that lives is designed to end.",
"We are perpetually trapped in a never-ending spiral of life and death.",
"Is this a curse?",
"Or some kind of punishment?",
"I often think about the god who blessed us with this cryptic puzzle...and wonder if we'll ever get the chance to kill him.",
];
// A line for kind; roll is Math.random(). "" for a kind with no lines.
function pick(kind, roll) {
const l = lines[kind] || [];
return l.length ? l[Math.min(l.length - 1, Math.floor(roll * l.length))] : "";
}
|